From 600f5432f3752ea164b7214259b0d2e8a1e68fe2 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sat, 18 Jun 2011 00:40:12 +0300 Subject: [PATCH] op_cpuspeed.sh: fix too unspecific grep arguments this fixes the following error: /usr/pandora/scripts/op_cpuspeed.sh: line 35: [: too many arguments --- recipes/pandora-system/pandora-scripts/op_cpuspeed.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2