summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff.script
blob: 99779eb0a07f54f19797a3f63dee3d40f2a5c324 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
. /etc/profile
INIT=`ps -p 1 -o comm=`
chvt 1
if [ x$INIT = xrunit ]
then
 	 /sbin/halt-runit $@
else
     	/sbin/poweroff.init $@
fi