X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=testdata%2Fscripts%2Fop_bright_down.sh;fp=testdata%2Fscripts%2Fop_bright_down.sh;h=0000000000000000000000000000000000000000;hb=fb1a2e751e2e0cee26ffee0016f9018ab89703ee;hp=2e79385a9c5e9035c1c69bc353d75f5da42ff3ba;hpb=8075d3dba75ec1bf935e452595897d160f39244a;p=pandora-libraries.git diff --git a/testdata/scripts/op_bright_down.sh b/testdata/scripts/op_bright_down.sh deleted file mode 100755 index 2e79385..0000000 --- a/testdata/scripts/op_bright_down.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -cur=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness); -if [ "$cur" -gt "40" ]; then - new=$(($cur-10)) -elif [ "$cur" -gt "30" ]; then - new=$(($cur-7)) -elif [ "$cur" -gt "20" ]; then - new=$(($cur-5)) -elif [ "$cur" -gt "5" ]; then - new=$(($cur-3)) -elif [ "$cur" -gt "0" ]; then - new=$(($cur-1)) -fi - -if [ "$new" -lt "3" ]; then - new=0 -fi - -echo $new > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness