From: Michael Mrozek Date: Thu, 14 Mar 2013 01:38:04 +0000 (+0100) Subject: rc,pandora-state: Set LED Brightness according to led.conf X-Git-Tag: sz_154~49 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=048c47538d8adccefd328e0cd66c847f8f90fb00 rc,pandora-state: Set LED Brightness according to led.conf --- diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index 149989e..02a45cd 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -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