op_bright: Bugfix: Pressing Cancel did set brightness to 0.
authorMichael Mrozek <EvilDragon@openpandora.org>
Tue, 13 Apr 2010 23:07:23 +0000 (01:07 +0200)
committerMichael Mrozek <EvilDragon@openpandora.org>
Tue, 13 Apr 2010 23:07:23 +0000 (01:07 +0200)
recipes/pandora-system/pandora-scripts/op_bright.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 548e3e5..666312b
@@ -12,5 +12,5 @@ fi
 if [ $newbright ]; then
         if [ $newbright -le $minbright ]; then newbright=$minbright; fi
         if [ $newbright -ge $maxbright ]; then newbright=$maxbright; fi
+       echo $newbright > $device
 fi
-echo $newbright > $device