diff options
-rwxr-xr-x | etc/debian/3 | 6 | ||||
-rwxr-xr-x | etc/freebsd/3 | 14 | ||||
-rwxr-xr-x | etc/openbsd/3 | 13 |
3 files changed, 19 insertions, 14 deletions
diff --git a/etc/debian/3 b/etc/debian/3 index 486c7d1..be0554b 100755 --- a/etc/debian/3 +++ b/etc/debian/3 @@ -1,14 +1,16 @@ #!/bin/sh exec 2>&1 +PATH=/sbin:/bin:/command + LAST=0 test -r /etc/runit/reboot && LAST=6 echo 'Waiting for getties to stop...' -/command/svwaitdown -xk -t14 /service/getty-* +svwaitdown -xk -t14 /service/getty-* echo 'Waiting for services to stop...' -/command/svwaitdown -xk -t350 /service/* +svwaitdown -xk -t350 /service/* echo 'Shutdown...' /etc/init.d/rc $LAST diff --git a/etc/freebsd/3 b/etc/freebsd/3 index 486c7d1..dfaa234 100755 --- a/etc/freebsd/3 +++ b/etc/freebsd/3 @@ -1,16 +1,16 @@ #!/bin/sh exec 2>&1 -LAST=0 -test -r /etc/runit/reboot && LAST=6 - -echo 'Waiting for getties to stop...' -/command/svwaitdown -xk -t14 /service/getty-* +PATH=/bin:/sbin:/command echo 'Waiting for services to stop...' -/command/svwaitdown -xk -t350 /service/* +svwaitdown -xk -t350 /service/* echo 'Shutdown...' -/etc/init.d/rc $LAST +if test -r /etc/runit/reboot; then + exec reboot +else + exec halt +fi exit 0 diff --git a/etc/openbsd/3 b/etc/openbsd/3 index 486c7d1..3fba79d 100755 --- a/etc/openbsd/3 +++ b/etc/openbsd/3 @@ -1,16 +1,19 @@ #!/bin/sh exec 2>&1 -LAST=0 -test -r /etc/runit/reboot && LAST=6 +PATH=/bin:/sbin:/command echo 'Waiting for getties to stop...' -/command/svwaitdown -xk -t14 /service/getty-* +svwaitdown -xk -t14 /service/getty-* echo 'Waiting for services to stop...' -/command/svwaitdown -xk -t350 /service/* +svwaitdown -xk -t350 /service/* echo 'Shutdown...' -/etc/init.d/rc $LAST +if test -r /etc/runit/reboot; then + exec reboot +else + exec halt +fi exit 0 |