diff options
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff.script')
-rw-r--r-- | abs/core/poweroff-scripts/poweroff.script | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core/poweroff-scripts/poweroff.script b/abs/core/poweroff-scripts/poweroff.script new file mode 100644 index 0000000..99779eb --- /dev/null +++ b/abs/core/poweroff-scripts/poweroff.script @@ -0,0 +1,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 + |