Dash:
[t2.git] / package / contrib / runit-shutdown / forced_reboot_halt.patch
blob3bae78d86538b76af272b45407c5a38798b6f7d4
1 --- runit-shutdown-0.2/src/halt.sh.orig 2006-04-09 01:53:16.000000000 +0200
2 +++ runit-shutdown-0.2/src/halt.sh 2006-04-09 01:55:07.000000000 +0200
3 @@ -27,7 +27,11 @@
4 done
6 if [ "$force" ]; then
7 - echo "forced $PROG not implemented, ignored."
8 + if [ "$PROG" == 'reboot' ]; then
9 + exec /command/forced_reboot
10 + else
11 + exec /command/forced_poweroff
12 + fi
13 elif [ "$wtmp" ]; then
14 echo "wtmp record-only for $PROG not implemented, skiped."
15 exit 0