op_bright: Bugfix: Pressing Cancel did set brightness to 0.
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_bright.sh
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