From: Michael Mrozek Date: Sun, 25 Jul 2010 12:58:23 +0000 (+0200) Subject: op_lid: Missed an ! in an if-statement X-Git-Tag: sz_beta3~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6049dc249714eb846e7e02515133945cbf383331;p=pandora-libraries.git op_lid: Missed an ! in an if-statement --- diff --git a/testdata/scripts/op_lid.sh b/testdata/scripts/op_lid.sh index af39da9..0c351bc 100755 --- a/testdata/scripts/op_lid.sh +++ b/testdata/scripts/op_lid.sh @@ -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