aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-12-09 10:26:15 -0500
committerBill Nottingham <notting@redhat.com>2008-12-09 10:26:15 -0500
commitb7b6cb4ce32ba749f5f7b786ddc3bafd37442a89 (patch)
treedf6111d23b100e6aa594dc44921f9d3e856eaaa2
parentd8d067e3e2c6492fa16d6290e7b5fbb9a9e0b745 (diff)
downloadinitscripts-b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89.tar
initscripts-b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89.tar.gz
initscripts-b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89.tar.bz2
initscripts-b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89.tar.xz
initscripts-b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89.zip
Determine reboot/halt via existing INIT_HALT environment variable. (#475227)
No more magic files needed. In fact, I'm not sure they ever were. Whoops.
-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