diff options
author | Bill Nottingham <notting@redhat.com> | 2008-12-09 10:26:15 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-12-09 10:26:15 -0500 |
commit | b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89 (patch) | |
tree | df6111d23b100e6aa594dc44921f9d3e856eaaa2 /rc.d/init.d | |
parent | d8d067e3e2c6492fa16d6290e7b5fbb9a9e0b745 (diff) | |
download | initscripts-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.
Diffstat (limited to 'rc.d/init.d')
-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 |