aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-12-09 10:26:15 -0500
committerHarald Hoyer <harald@redhat.com>2009-05-04 16:05:05 +0200
commit6030163ce100fce7cd73afcaee59fd28c4079b79 (patch)
tree3ea578fe47c50e880bf0cb8e31ea00a028d8072c
parent03c8746e3e00a4de62c09a52e6fb8c161364ce44 (diff)
downloadinitscripts-6030163ce100fce7cd73afcaee59fd28c4079b79.tar
initscripts-6030163ce100fce7cd73afcaee59fd28c4079b79.tar.gz
initscripts-6030163ce100fce7cd73afcaee59fd28c4079b79.tar.bz2
initscripts-6030163ce100fce7cd73afcaee59fd28c4079b79.tar.xz
initscripts-6030163ce100fce7cd73afcaee59fd28c4079b79.zip
Determine reboot/halt via existing INIT_HALT environment variable. (#475006)
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 04ff6626..796ffdc6 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -217,6 +217,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