You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

6 lines
223 B

#!/usr/bin/env sh
OLDB=$(cat /tmp/oldscreenb || echo 10)
DIMB=2
CURB=$(cat /sys/devices/platform/backlight/backlight/backlight/brightness)
[[ $CURB == $DIMB ]] && sxmo_setpinebacklight $OLDB || sxmo_setpinebacklight $DIMB