From 6049dc249714eb846e7e02515133945cbf383331 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Sun, 25 Jul 2010 14:58:23 +0200 Subject: [PATCH] op_lid: Missed an ! in an if-statement --- testdata/scripts/op_lid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5