op_power.sh: Fixed shutdown loop
authorMichael Mrozek <EvilDragon@openpandora.de>
Mon, 10 Oct 2011 23:03:39 +0000 (01:03 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Mon, 10 Oct 2011 23:05:15 +0000 (01:05 +0200)
recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_power.sh

index 41062ac..4e5a6a6 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r76"
+PR = "r77"
 
 SRC_URI = " \
           file://op_bright.sh \
index b422d92..70bac83 100644 (file)
@@ -89,7 +89,7 @@ shutdown(){ # warns the user and shuts the pandora down
        }
        countdown | su -c 'DISPLAY=:0.0 zenity --progress --auto-close --text "Shutdown in X" --title "Shutdown"' $xfceuser
        if [ $? -eq 0 ]; then
-       shutdown -h now
+       /sbin/shutdown -h now
        else
        su -c 'DISPLAY=:0.0 zenity --error --text "Shutdown aborted!"' $xfceuser
        fi