rc,pandora-state: Set LED Brightness according to led.conf
authorMichael Mrozek <EvilDragon@openpandora.org>
Thu, 14 Mar 2013 01:38:04 +0000 (02:38 +0100)
committerMichael Mrozek <EvilDragon@openpandora.org>
Thu, 14 Mar 2013 01:38:04 +0000 (02:38 +0100)
recipes/pandora-system/pandora-state/rc.pandora-state

index 149989e..02a45cd 100644 (file)
@@ -39,6 +39,8 @@ d_stop() {
 
 d_start() {
        echo "Restoring Pandora specific settings"
+       highpow="$(cat /etc/pandora/conf/led.conf | grep HighPowerLED: | awk -F\: '{print $2}')"
+       echo $highpow > /sys/class/leds/pandora\:\:power/brightness #power LED bright
        bright=$(cat /etc/pandora/conf/brightness.state)
        if [ "$bright" -gt "0" ]; then
                echo $bright > $SYSFS_BACKLIGHT_BRIGHTNESS