From: Michael Mrozek Date: Wed, 14 Apr 2010 00:21:07 +0000 (+0200) Subject: rc.pandora-lcd-state: Added nubs state X-Git-Tag: Release-2010-05/1~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b59b695dfb1e8643c97efce44cc4d0234214890;p=openpandora.oe.git rc.pandora-lcd-state: Added nubs state --- diff --git a/recipes/pandora-system/pandora-lcd-state/rc.pandora-lcd-state b/recipes/pandora-system/pandora-lcd-state/rc.pandora-lcd-state index a11d656..a5c00cd 100644 --- a/recipes/pandora-system/pandora-lcd-state/rc.pandora-lcd-state +++ b/recipes/pandora-system/pandora-lcd-state/rc.pandora-lcd-state @@ -12,15 +12,19 @@ DESC="OpenPandora Save and Restore LCD Settings" NAME="pandora-lcd-state" d_stop() { - echo "Saving LCD-Settings" + echo "Saving LCD and Nub-Settings" cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness > /etc/pandora/conf/brightness.state cat /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma > /etc/pandora/conf/gamma.state + cat /proc/pandora/vsense66 > /etc/pandora/conf/nubs.state + cat /proc/pandora/vsense67 >> /etc/pandora/conf/nubs.state } d_start() { - echo "Restoring LCD-Settings" + echo "Restoring LCD and Nub-Settings" 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 + sed -n '1p' /etc/pandora/conf/nubs.state > /proc/pandora/vsense66 + sed -n '2p' /etc/pandora/conf/nubs.state > /proc/pandora/vsense67 } case "$1" in