diff options
author | Mike Westerhof <mwester@dls.net> | 2008-12-14 11:33:30 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2008-12-14 11:33:30 -0600 |
commit | 61fdebce76692886f088057c22d24a92e720144a (patch) | |
tree | 63e8163d9a398ddc1c2865c072449c23b15f9db7 /packages/initscripts/initscripts-1.0 | |
parent | 8502cfe831bf7e5dc10423abe13089c12abd7bc8 (diff) |
SlugOS: initscripts - make reboot kexec-aware
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rwxr-xr-x | packages/initscripts/initscripts-1.0/slugos/reboot | 16 |
1 files changed, 16 insertions, 0 deletions
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 |