/etc/init.d/grml-reboot: put reboot + halt binaries to the filesystem cache
authorMichael Prokop <mika@grml.org>
Mon Mar 10 18:47:05 2008 +0100 (5 months ago)
changeset 1441f231de1a8c7
manifest1f231de1a8c7
parent 1436ec86ccc80cf
child 145ebd8ba7f3743
/etc/init.d/grml-reboot: put reboot + halt binaries to the filesystem cache
debian/changelog
etc/init.d/grml-reboot
--- a/debian/changelog Mon Feb 04 15:33:45 2008 +0100
+++ b/debian/changelog Mon Mar 10 18:47:05 2008 +0100
@@ -1,3 +1,10 @@ grml-etc (1.1.2) unstable; urgency=low
+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 <mika@grml.org> 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.
--- a/etc/init.d/grml-reboot Mon Feb 04 15:33:45 2008 +0100
+++ b/etc/init.d/grml-reboot Mon Mar 10 18:47:05 2008 +0100
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Klaus Knopper, (c) Michael Prokop <mika@grml.org>
# 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
@@ -51,6 +51,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