From 048c47538d8adccefd328e0cd66c847f8f90fb00 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Thu, 14 Mar 2013 02:38:04 +0100 Subject: [PATCH] rc,pandora-state: Set LED Brightness according to led.conf --- recipes/pandora-system/pandora-state/rc.pandora-state | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5