summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/slugos/reboot
blob: cb0979f40020db767eb332cf21d8daf7480b7026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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