- cat /etc/pandora/conf/brightness.state > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness
- cat /etc/pandora/conf/gamma.state > /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma
+ cat /etc/pandora/conf/gamma.state > $SYSFS_GAMMA
+ if [ -f /etc/pandora/conf/filter.state ]; then
+ filter=$(cat /etc/pandora/conf/filter.state)
+ /usr/pandora/scripts/op_videofir.sh $filter
+ fi
+ cpuspeed="$(cat /etc/pandora/conf/cpu.conf | grep default | awk -F\: '{print $2}')"
+ oppmax="$(cat /etc/pandora/conf/cpu.conf | grep opp | awk -F\: '{print $2}')"
+ echo $oppmax > /proc/pandora/cpu_opp_max
+ if [ -f /etc/pandora/shutdown ]; then
+ rm /etc/pandora/shutdown
+ sync
+ /usr/pandora/scripts/op_cpuspeed.sh -n $cpuspeed
+ else
+ echo "No clean shutdown - will not set CPU speed"
+ echo "Yes" > /tmp/nocleanwarn
+ fi