git.openpandora.org
/
openpandora.oe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
op_power.sh: Fixed shutdown loop
[openpandora.oe.git]
/
recipes
/
pandora-system
/
pandora-scripts
/
op_power.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
(file)
--- 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
}
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
else
su -c 'DISPLAY=:0.0 zenity --error --text "Shutdown aborted!"' $xfceuser
fi