diff options
author | Bill Nottingham <notting@redhat.com> | 2008-12-09 10:26:15 -0500 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-05-04 16:05:05 +0200 |
commit | 6030163ce100fce7cd73afcaee59fd28c4079b79 (patch) | |
tree | 3ea578fe47c50e880bf0cb8e31ea00a028d8072c | |
parent | 03c8746e3e00a4de62c09a52e6fb8c161364ce44 (diff) | |
download | initscripts-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-x | rc.d/init.d/halt | 2 |
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 |