SlugOS: initscripts - make reboot kexec-aware
authorMike Westerhof <mwester@dls.net>
Sun, 14 Dec 2008 17:33:30 +0000 (11:33 -0600)
committerMike Westerhof <mwester@dls.net>
Sun, 14 Dec 2008 17:33:30 +0000 (11:33 -0600)
packages/initscripts/initscripts-1.0/slugos/reboot [new file with mode: 0755]
packages/initscripts/initscripts-slugos_1.0.bb

diff --git a/packages/initscripts/initscripts-1.0/slugos/reboot b/packages/initscripts/initscripts-1.0/slugos/reboot
new file mode 100755 (executable)
index 0000000..cb0979f
--- /dev/null
@@ -0,0 +1,16 @@
+#! /bin/sh
+#
+# reboot       Execute the reboot command.
+#
+# Version:      @(#)reboot  2.75  22-Jun-1998  miquels@cistron.nl
+#
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+echo "Rebooting... "
+if [ -x /usr/sbin/kexec ] ; then
+       echo " trying kexec..."
+       kexec -f -e -x
+fi
+echo " normal reboot..."
+reboot -d -f -i
index 18176ed..1b29e8f 100644 (file)
@@ -16,7 +16,7 @@ RDEPENDS = ""
 # All other standard definitions inherited from initscripts
 # Except the PR which is hacked here.  The format used is
 # a suffix
-PR := "${PR}.15"
+PR := "${PR}.16"
 
 FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/${P}', '${FILE_DIRNAME}/initscripts-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"