X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Finit.d%2Fgrml-reboot;fp=etc%2Finit.d%2Fgrml-reboot;h=d5622209fc486c930297effa6ab1a214482e44e4;hb=da664fe1e607a49b54028854e19513bd253f2a0e;hp=5564504b864b56ab16f9be0b1b3f92c808fc9e8b;hpb=123332c81b707bbe5cfff5dfed0e2ea366c8935d;p=grml-etc.git diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index 5564504..d562220 100755 --- a/etc/init.d/grml-reboot +++ b/etc/init.d/grml-reboot @@ -74,8 +74,9 @@ shutdown_network() { echo "0" > /proc/sys/kernel/printk # make sure halt/reboot commands are available even if -# someone is using shutdown command: -cat /sbin/halt /sbin/reboot >/dev/null +# someone is using shutdown command or nfsroot is used: +cat /sbin/halt /sbin/reboot /etc/init.d/$command /etc/init.d/ups-monitor \ + /etc/apcupsd/powerfail >/dev/null 2>&1 # We may kill our network connection here before unmounting NFS. Bad luck. # poweroff pcmcia devices