summaryrefslogtreecommitdiff
path: root/recipes/initscripts/initscripts-1.0/slugos/reboot
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/initscripts/initscripts-1.0/slugos/reboot')
-rwxr-xr-xrecipes/initscripts/initscripts-1.0/slugos/reboot16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/initscripts/initscripts-1.0/slugos/reboot b/recipes/initscripts/initscripts-1.0/slugos/reboot
new file mode 100755
index 0000000000..f98b87f033
--- /dev/null
+++ b/recipes/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