From 3f250f4732e140624e0bc3178ab472436940a475 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Thu, 18 Jul 2013 03:56:43 +0200 Subject: [PATCH] rc.pandora-state: Find out Pandora Type and set it into /tmp/pnd_version --- recipes/pandora-system/pandora-state/rc.pandora-state | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index 4178d88..529b8d1 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -38,6 +38,9 @@ d_stop() { } d_start() { + # Determine Pandora type + pnd_version=$(dmesg | grep OMAP3 | grep ES | awk '{print $3}') + echo $pnd_version > /tmp/pnd_version 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 @@ -66,7 +69,6 @@ d_start() { echo "No clean shutdown - will CPU Speed will be set to safe value." echo "Yes" > /tmp/nocleanwarn chmod 777 /tmp/nocleanwarn - pnd_version=$(dmesg | grep OMAP3 | grep ES | awk '{print $3}') if [ "$pnd_version" == "OMAP3630" ]; then cpuspeed="1000" else -- 2.39.2