X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-scripts%2Fop_paths.sh;fp=recipes%2Fpandora-system%2Fpandora-scripts%2Fop_paths.sh;h=418788fcc72298ec766c90f75f50b89facf62030;hb=9af25b7eb768ed326228bd71083c71dd7c57e31b;hp=0000000000000000000000000000000000000000;hpb=441cc6cc7f21602a9240cab2e1168bd544b1eaba;p=openpandora.oe.git diff --git a/recipes/pandora-system/pandora-scripts/op_paths.sh b/recipes/pandora-system/pandora-scripts/op_paths.sh new file mode 100644 index 0000000..418788f --- /dev/null +++ b/recipes/pandora-system/pandora-scripts/op_paths.sh @@ -0,0 +1,21 @@ + +# files changing between kernel versions + +if [ -e /sys/class/backlight/pandora-backlight ]; then + SYSFS_BACKLIGHT=/sys/class/backlight/pandora-backlight +elif [ -e /sys/class/backlight/twl4030-pwm0-bl ]; then + SYSFS_BACKLIGHT=/sys/class/backlight/twl4030-pwm0-bl +else + echo "ERROR: backlight control not found" >&2 + SYSFS_BACKLIGHT=/dev/null +fi +SYSFS_BACKLIGHT_BRIGHTNESS=${SYSFS_BACKLIGHT}/brightness + +if [ -e /sys/devices/omapdss/display0/gamma ]; then + SYSFS_GAMMA=/sys/devices/omapdss/display0/gamma +elif [ -e /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma ]; then + SYSFS_GAMMA=/sys/devices/platform/omap2_mcspi.1/spi1.1/gamma +else + echo "ERROR: gamma control not found" >&2 + SYSFS_GAMMA=/dev/null +fi