summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/halt.script
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-10-27 20:28:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-10-27 20:28:27 (GMT)
commitf7b823f55a80b1498c30e9f3a47692a2329c4f09 (patch)
tree6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/poweroff-scripts/halt.script
parent4c2a2e3504f472628285a989c7c9a76be6855f54 (diff)
parent01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (diff)
downloadlinhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.zip
linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.gz
linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/core/poweroff-scripts/halt.script')
-rwxr-xr-x[-rw-r--r--]abs/core/poweroff-scripts/halt.script12
1 files changed, 6 insertions, 6 deletions
diff --git a/abs/core/poweroff-scripts/halt.script b/abs/core/poweroff-scripts/halt.script
index dacf16a..223d3e8 100644..100755
--- a/abs/core/poweroff-scripts/halt.script
+++ b/abs/core/poweroff-scripts/halt.script
@@ -2,16 +2,16 @@
MYTH_RUN_STATUS="1"
. /etc/profile
INIT=`ps -p 1 -o comm=`
+
+#ignore -w option
if [ x$1 = x-w ]
then
- /sbin/halt.init -w
- exit 0
+ exit 0
fi
-chvt 1
+
if [ x$INIT = xrunit ]
then
- /sbin/halt-runit $@
+ shutdown -h
else
- /sbin/halt.init $@
+ systemctl poweroff $@
fi
-