aboutsummaryrefslogtreecommitdiffstats
path: root/packages/initscripts/initscripts-1.0/slugos/reboot
blob: f98b87f033346a141bb9c6dfa55ea987ed62c7e8 (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