summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/reboot.script
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/poweroff-scripts/reboot.script')
-rwxr-xr-x[-rw-r--r--]abs/core/poweroff-scripts/reboot.script6
1 files changed, 4 insertions, 2 deletions
diff --git a/abs/core/poweroff-scripts/reboot.script b/abs/core/poweroff-scripts/reboot.script
index 47ad99e..de2651c 100644..100755
--- a/abs/core/poweroff-scripts/reboot.script
+++ b/abs/core/poweroff-scripts/reboot.script
@@ -5,8 +5,10 @@ INIT=`ps -p 1 -o comm=`
chvt 1
if [ x$INIT = xrunit ]
then
- /sbin/reboot-runit $@
+ echo "System will reboot NOW" |wall
+ chvt 1
+ runit-init 6
else
- /sbin/reboot.init $@
+ systemctl reboot $@
fi