pandora-misc: bump to get op_gammatable
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_paths.sh
1
2 # files changing between kernel versions
3
4 if [ -e /sys/class/backlight/pandora-backlight ]; then
5         SYSFS_BACKLIGHT=/sys/class/backlight/pandora-backlight
6 elif [ -e /sys/class/backlight/twl4030-pwm0-bl ]; then
7         SYSFS_BACKLIGHT=/sys/class/backlight/twl4030-pwm0-bl
8 else
9         echo "ERROR: backlight control not found" >&2
10         SYSFS_BACKLIGHT=/dev/null
11 fi
12 SYSFS_BACKLIGHT_BRIGHTNESS=${SYSFS_BACKLIGHT}/brightness
13
14 if [ -e /sys/devices/omapdss/display0/gamma ]; then
15         SYSFS_GAMMA=/sys/devices/omapdss/display0/gamma
16 elif [ -e /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma ]; then
17         SYSFS_GAMMA=/sys/devices/platform/omap2_mcspi.1/spi1.1/gamma
18 else
19         echo "ERROR: gamma control not found" >&2
20         SYSFS_GAMMA=/dev/null
21 fi