From: Michael Tremer Date: Sun, 23 Aug 2009 20:01:22 +0000 (+0200) Subject: initscripts: Fix bash comparison. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=214e03dda44e9c28a0ae6ebb9d5d3b920957d43a;p=ipfire-3.x.git initscripts: Fix bash comparison. --- diff --git a/src/initscripts/core/shutdown.conf b/src/initscripts/core/shutdown.conf index 21d69d334..c319e4136 100644 --- a/src/initscripts/core/shutdown.conf +++ b/src/initscripts/core/shutdown.conf @@ -11,7 +11,7 @@ script # The UPSTART_EVENTS variable contains the event that has called the # script and is used to perform the requested action. - if [ "$UPSTART_EVENTS" -eq shutdown ]; then + if [ "${UPSTART_EVENTS}" = "shutdown" ]; then poweroff -f else reboot -f