From 6d42961769ecea2dcbdeadc4a6d733f9a8983eb8 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Tue, 11 Oct 2011 01:03:39 +0200 Subject: [PATCH 1/1] op_power.sh: Fixed shutdown loop --- recipes/pandora-system/pandora-scripts.bb | 2 +- recipes/pandora-system/pandora-scripts/op_power.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/pandora-system/pandora-scripts.bb b/recipes/pandora-system/pandora-scripts.bb index 41062ac..4e5a6a6 100644 --- a/recipes/pandora-system/pandora-scripts.bb +++ b/recipes/pandora-system/pandora-scripts.bb @@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora" DEPENDS = "zenity dbus" RDEPENDS = "zenity dbus" -PR = "r76" +PR = "r77" SRC_URI = " \ file://op_bright.sh \ diff --git a/recipes/pandora-system/pandora-scripts/op_power.sh b/recipes/pandora-system/pandora-scripts/op_power.sh index b422d92..70bac83 100644 --- a/recipes/pandora-system/pandora-scripts/op_power.sh +++ b/recipes/pandora-system/pandora-scripts/op_power.sh @@ -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 -- 2.39.2