From 2411a87e5ebcf0980394fc40d524833f89f057f9 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 9 Mar 2011 02:42:49 +0100 Subject: [PATCH] xbmc: cputemp output with parsing more lines Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc/scripts/cputemp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mediacenter/xbmc/scripts/cputemp b/packages/mediacenter/xbmc/scripts/cputemp index 4e5d1a0721..0466da2272 100755 --- a/packages/mediacenter/xbmc/scripts/cputemp +++ b/packages/mediacenter/xbmc/scripts/cputemp @@ -25,8 +25,7 @@ TEMP="0" if [ -f /sys/class/thermal/thermal_zone0/temp ]; then TEMP=`echo "$(cat /sys/class/thermal/thermal_zone0/temp)/1000" |bc` elif [ -f /usr/bin/sensors ]; then -# TEMP=`/usr/bin/sensors -u | head -6 |grep "temp1_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'` - TEMP=`/usr/bin/sensors -u | tail -n4 | grep temp1_input | awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'` + TEMP=`/usr/bin/sensors -u | tail -n6 | grep temp1_input | awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'` fi echo "${TEMP} C"