aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index f8b56d22..a986f009 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -175,6 +175,6 @@ fi
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null
HALTARGS="-d"
-[ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p"
+[ "$INIT_HALT" != "HALT"] && HALTARGS="$HALTARGS -p"
exec $command $HALTARGS