]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Changed handling of shutdown / reboot event.
authorStefan Schantl <Stevee@ipfire.org>
Mon, 24 Aug 2009 10:30:39 +0000 (12:30 +0200)
committerStefan Schantl <Stevee@ipfire.org>
Mon, 24 Aug 2009 10:30:39 +0000 (12:30 +0200)
Shutdown and poweroff the system should work now.

src/initscripts/core/shutdown.conf

index c319e4136f23c602acb054041fc2eb97c4e7022b..63d04acbb0a1a74b40c79f4c76a02e939b88447c 100644 (file)
@@ -11,9 +11,9 @@ script
 
        # The UPSTART_EVENTS variable contains the event that has called the
        # script and is used to perform the requested action.
-       if [ "${UPSTART_EVENTS}" = "shutdown" ]; then
-               poweroff -f
-       else
+       if [ "${UPSTART_EVENTS}" = "reboot" ]; then
                reboot -f
+       else
+               halt -f
        fi
 end script