From 61fdebce76692886f088057c22d24a92e720144a Mon Sep 17 00:00:00 2001 From: Mike Westerhof Date: Sun, 14 Dec 2008 11:33:30 -0600 Subject: SlugOS: initscripts - make reboot kexec-aware --- packages/initscripts/initscripts-1.0/slugos/reboot | 16 ++++++++++++++++ packages/initscripts/initscripts-slugos_1.0.bb | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 packages/initscripts/initscripts-1.0/slugos/reboot diff --git a/packages/initscripts/initscripts-1.0/slugos/reboot b/packages/initscripts/initscripts-1.0/slugos/reboot new file mode 100755 index 0000000000..cb0979f400 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/slugos/reboot @@ -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 diff --git a/packages/initscripts/initscripts-slugos_1.0.bb b/packages/initscripts/initscripts-slugos_1.0.bb index 18176ed4f8..1b29e8f1af 100644 --- a/packages/initscripts/initscripts-slugos_1.0.bb +++ b/packages/initscripts/initscripts-slugos_1.0.bb @@ -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)}" -- cgit v1.2.3