summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/reboot.script
blob: 47ad99ed28f4eb05437f6dd0f598886ce433bde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
MYTH_RUN_STATUS="1"
. /etc/profile
INIT=`ps -p 1 -o comm=`
chvt 1
if [ x$INIT = xrunit ]
then
 	 /sbin/reboot-runit $@
else
     	/sbin/reboot.init $@
fi