From: Michael Prokop Date: Mon, 10 Mar 2008 17:47:05 +0000 (+0100) Subject: /etc/init.d/grml-reboot: put reboot + halt binaries to the filesystem cache X-Git-Tag: 1.1.3~1 X-Git-Url: http://git.grml.org/?p=grml-etc.git;a=commitdiff_plain;h=9f6a142c655f2965205623219797c43e29dd3efc /etc/init.d/grml-reboot: put reboot + halt binaries to the filesystem cache --- diff --git a/debian/changelog b/debian/changelog index ab659c6..223521a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc (1.1.3) unstable; urgency=low + + * /etc/init.d/grml-reboot: put reboot + halt binaries to + the filesystem cache [Testing: issue384] + + -- Michael Prokop Mon, 10 Mar 2008 18:46:23 +0100 + grml-etc (1.1.2) unstable; urgency=low * Try to work around dpkg-divert issues with missing files. diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index 846184c..0b735a9 100755 --- a/etc/init.d/grml-reboot +++ b/etc/init.d/grml-reboot @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper, (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Jän 14 12:53:18 CET 2008 [mika] +# Latest change: Mon Mär 10 18:45:36 CET 2008 [mika] ################################################################################ export PATH=/sbin:/bin:/usr/bin:/usr/sbin @@ -52,6 +52,10 @@ mysleep() { # Disable kernel messages 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 + # We may kill our network connection here before unmounting NFS. Bad luck. # poweroff pcmcia devices if [ -d /sys/bus/pcmcia -a -x /sbin/pccardctl ] ; then