summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff.script
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff.script')
-rw-r--r--abs/core/poweroff-scripts/poweroff.script7
1 files changed, 5 insertions, 2 deletions
diff --git a/abs/core/poweroff-scripts/poweroff.script b/abs/core/poweroff-scripts/poweroff.script
index 99779eb..211c9ee 100644
--- a/abs/core/poweroff-scripts/poweroff.script
+++ b/abs/core/poweroff-scripts/poweroff.script
@@ -1,11 +1,14 @@
#!/bin/bash
+MYTH_RUN_STATUS="1"
. /etc/profile
INIT=`ps -p 1 -o comm=`
chvt 1
if [ x$INIT = xrunit ]
then
- /sbin/halt-runit $@
+ echo "System whill shutdown NOW" |wall
+ chvt 1
+ runit-init 0
else
- /sbin/poweroff.init $@
+ systemctl poweroff $@
fi