summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/halt.script
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/poweroff-scripts/halt.script')
-rwxr-xr-x[-rw-r--r--]abs/core/poweroff-scripts/halt.script19
1 files changed, 11 insertions, 8 deletions
diff --git a/abs/core/poweroff-scripts/halt.script b/abs/core/poweroff-scripts/halt.script
index dacf16a..51c9925 100644..100755
--- a/abs/core/poweroff-scripts/halt.script
+++ b/abs/core/poweroff-scripts/halt.script
@@ -2,16 +2,19 @@
MYTH_RUN_STATUS="1"
. /etc/profile
INIT=`ps -p 1 -o comm=`
-if [ x$1 = x-w ]
-then
- /sbin/halt.init -w
- exit 0
-fi
-chvt 1
+# if [ x$1 = x-w ]
+# then
+# /sbin/halt.init -w
+# exit 0
+# fi
+
if [ x$INIT = xrunit ]
then
- /sbin/halt-runit $@
+ echo "System whill shutdown NOW" |wall
+ chvt 1
+ runit-init 0
+
else
- /sbin/halt.init $@
+ systemctrl $@
fi