2 #actions done when the lid is closed
3 #only argument is 0 for open 1 for closed
5 if [ "$1" = "1" ]; then #lid was closed
6 /usr/pandora/scripts/op_bright.sh 0
7 elif [ "$1" = "0" ]; then # lid was opend
8 /usr/pandora/scripts/op_bright.sh $(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/max_brightness)