2 807 B

1234567891011121314151617181920
  1. #!/bin/sh --
  2. set -ue
  3. PATH=/bin:/sbin:/usr/bin:/usr/sbin
  4. SVDIR=/var/service
  5. [ -r /etc/runit/rc ] && . /etc/runit/rc
  6. [ "${BOOT_TIME:-0}" = 1 ] && {
  7. read -r boot_time _ < /proc/uptime
  8. boot_time="${boot_time:+${boot_time} sec}"
  9. printf '%s\n%s\n' "${BOOT_TIME_TXT:-}${boot_time:-None}" \
  10. "${ISSUE_SEQ:-\l in \r}" \
  11. >/etc/issue
  12. }
  13. exec env - PATH="${PATH}" SVDIR="${SVDIR}" \
  14. runsvdir -P "${SVDIR}" \
  15. 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'