]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
initscripts: Fix bash comparison.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Aug 2009 20:01:22 +0000 (22:01 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 23 Aug 2009 20:01:22 +0000 (22:01 +0200)
src/initscripts/core/shutdown.conf

index 21d69d3340b721c55850329f240aea601f7cf6fa..c319e4136f23c602acb054041fc2eb97c4e7022b 100644 (file)
@@ -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