From b7b6cb4ce32ba749f5f7b786ddc3bafd37442a89 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 9 Dec 2008 10:26:15 -0500 Subject: 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. --- rc.d/init.d/halt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d/halt') 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 -- cgit v1.2.1