1234567891011121314151617181920 |
- #!/bin/sh --
- set -ue
- PATH=/bin:/sbin:/usr/bin:/usr/sbin
- SVDIR=/var/service
- [ -r /etc/runit/rc ] && . /etc/runit/rc
- [ "${BOOT_TIME:-0}" = 1 ] && {
- read -r boot_time _ < /proc/uptime
- boot_time="${boot_time:+${boot_time} sec}"
- printf '%s\n%s\n' "${BOOT_TIME_TXT:-}${boot_time:-None}" \
- "${ISSUE_SEQ:-\l in \r}" \
- >/etc/issue
- }
- exec env - PATH="${PATH}" SVDIR="${SVDIR}" \
- runsvdir -P "${SVDIR}" \
- 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|