git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1584c7
)
op_lid: Missed an ! in an if-statement
author
Michael Mrozek
<EvilDragon@openpandora.de>
Sun, 25 Jul 2010 12:58:23 +0000
(14:58 +0200)
committer
Michael Mrozek
<EvilDragon@openpandora.de>
Sun, 25 Jul 2010 12:58:23 +0000
(14:58 +0200)
testdata/scripts/op_lid.sh
patch
|
blob
|
history
diff --git
a/testdata/scripts/op_lid.sh
b/testdata/scripts/op_lid.sh
index
af39da9
..
0c351bc
100755
(executable)
--- 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