shutdown.script.diff
shutdown.script 2010-03-08 15:53:06.000000000 -0600 | ||
---|---|---|
23 | 23 |
done |
24 | 24 |
if [ x$delay = x ] |
25 | 25 |
then |
26 |
echo "-t is mandatory" |
|
27 |
exit 4 |
|
26 |
delay=0 |
|
28 | 27 |
fi |
29 | 28 | |
30 | 29 |
if [ x$reboot = x1 ] |
... | ... | |
36 | 35 | |
37 | 36 |
if [ x$halt = x1 ] |
38 | 37 |
then |
39 |
wall "System will poweroff in $delay seconds"
|
|
38 |
wall "System will poweroff in $delay seconds" |
|
40 | 39 |
sleep $delay |
41 | 40 |
/sbin/runit-init 0 |
42 | 41 |
fi |