From: Grazvydas Ignotas Date: Fri, 17 Jun 2011 21:40:12 +0000 (+0300) Subject: op_cpuspeed.sh: fix too unspecific grep arguments X-Git-Tag: sz_beta3~128 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=600f5432f3752ea164b7214259b0d2e8a1e68fe2 op_cpuspeed.sh: fix too unspecific grep arguments this fixes the following error: /usr/pandora/scripts/op_cpuspeed.sh: line 35: [: too many arguments --- diff --git a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh index 45bddee..379493d 100755 --- a/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh +++ b/recipes/pandora-system/pandora-scripts/op_cpuspeed.sh @@ -1,9 +1,9 @@ #!/bin/bash #get value range -minmhz="$(cat /etc/pandora/conf/cpu.conf | grep min | awk -F\: '{print $2}')" -safemhz="$(cat /etc/pandora/conf/cpu.conf | grep safe | awk -F\: '{print $2}')" -maxmhz="$(cat /etc/pandora/conf/cpu.conf | grep max | awk -F\: '{print $2}')" -warn="$(cat /etc/pandora/conf/cpu.conf | grep warn | awk -F\: '{print $2}')" +minmhz="$(cat /etc/pandora/conf/cpu.conf | grep 'min:' | awk -F\: '{print $2}')" +safemhz="$(cat /etc/pandora/conf/cpu.conf | grep 'safe:' | awk -F\: '{print $2}')" +maxmhz="$(cat /etc/pandora/conf/cpu.conf | grep 'max:' | awk -F\: '{print $2}')" +warn="$(cat /etc/pandora/conf/cpu.conf | grep 'warn:' | awk -F\: '{print $2}')" curmhz="$(cat /proc/pandora/cpu_mhz_max)" newmhz="$(cat /proc/pandora/cpu_mhz_max)" device=/proc/pandora/cpu_mhz_max