summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff.script
blob: 211c9ee45745d1a94c2d65481ffffdbd2e9fd7d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
MYTH_RUN_STATUS="1"
. /etc/profile
INIT=`ps -p 1 -o comm=`
chvt 1
if [ x$INIT = xrunit ]
then
    echo "System whill shutdown NOW" |wall
    chvt 1
    runit-init 0
else
    systemctl poweroff $@
fi