diff options
author | Bill Nottingham <notting@redhat.com> | 2008-12-09 10:26:15 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-03-11 13:35:11 -0400 |
commit | 4069681f6cdd62a06d5adf1f17a5ec70c986a933 (patch) | |
tree | c8732ada2dd8de00e90f0326962f4b4b9c0ee9d6 | |
parent | d136560d0b27c4c1d7eb869c9495305ce65f6930 (diff) | |
download | initscripts-4069681f6cdd62a06d5adf1f17a5ec70c986a933.tar initscripts-4069681f6cdd62a06d5adf1f17a5ec70c986a933.tar.gz initscripts-4069681f6cdd62a06d5adf1f17a5ec70c986a933.tar.bz2 initscripts-4069681f6cdd62a06d5adf1f17a5ec70c986a933.tar.xz initscripts-4069681f6cdd62a06d5adf1f17a5ec70c986a933.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-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 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 |