From: Michael Prokop Date: Mon, 1 Jun 2009 17:49:10 +0000 (+0200) Subject: Apply patch to fix power when booting via PXE X-Git-Tag: v1.1.16^0 X-Git-Url: http://git.grml.org/?p=grml-etc.git;a=commitdiff_plain;h=da664fe1e607a49b54028854e19513bd253f2a0e Apply patch to fix power when booting via PXE --- diff --git a/debian/changelog b/debian/changelog index 12b17ed..86c92d7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +grml-etc (1.1.16) unstable; urgency=low + + * /etc/init.d/grml-reboot: apply patch by Andreas Thienemann + to put "/etc/init.d/$command" into RAM as well so poweroff + works as expected when booting via PXE. [Closes: issue677] + + -- Michael Prokop Mon, 01 Jun 2009 19:46:56 +0200 + grml-etc (1.1.15) unstable; urgency=low * Add /etc/skel/.links2 providing a bookmark file (mainly to 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