diff options
author | Gerrit Pape <pape@smarden.org> | 2002-09-26 12:42:56 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-09-26 12:42:56 +0000 |
commit | 87acc7ded0ea1e3b9466c0ba57fd7b2b7f727ee0 (patch) | |
tree | cb2481b9d805a6e544993c2ac71b095bb57837b1 /etc | |
parent | 0cb40c9334397750519542f2f1684f508fe8f2d8 (diff) | |
download | runit-87acc7ded0ea1e3b9466c0ba57fd7b2b7f727ee0.tar.gz runit-87acc7ded0ea1e3b9466c0ba57fd7b2b7f727ee0.tar.xz runit-87acc7ded0ea1e3b9466c0ba57fd7b2b7f727ee0.zip |
grmpf, stage 3 was broken.
Diffstat (limited to 'etc')
-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 |