]> git.openpandora.org Git - pandora-libraries.git/commitdiff
op_lid: Missed an ! in an if-statement
authorMichael Mrozek <EvilDragon@openpandora.de>
Sun, 25 Jul 2010 12:58:23 +0000 (14:58 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Sun, 25 Jul 2010 12:58:23 +0000 (14:58 +0200)
testdata/scripts/op_lid.sh

index af39da99658b6b482e1bad1cbd36597c8535f8e7..0c351bc359fb751b29552d0c745b0c31626eb4f1 100755 (executable)
@@ -2,7 +2,7 @@
 #actions done when the lid is closed
 #only argument is 0 for open 1 for closed
 
-if [ -e /tmp/powerstate ]; then #do nothing when in powersave mode
+if [ ! -e /tmp/powerstate ]; then #do nothing when in powersave mode
   if [ "$1" = "1" ]; then #lid was closed
     #/usr/pandora/scripts/op_bright.sh 0
     cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness > /tmp/oldbright