diff --git a/packages/mediacenter/xbmc-frodo/scripts/cputemp b/packages/mediacenter/xbmc-frodo/scripts/cputemp index 9e960b5167..2a6e7d556a 100755 --- a/packages/mediacenter/xbmc-frodo/scripts/cputemp +++ b/packages/mediacenter/xbmc-frodo/scripts/cputemp @@ -46,9 +46,9 @@ elif [ -f /sys/class/hwmon/hwmon0/device/temp1_input ]; then elif [ -f /sys/class/hwmon/hwmon0/device/temp2_input ]; then # used on ION systems TEMP=`cat /sys/class/hwmon/hwmon0/device/temp2_input` -elif [ -x /usr/bin/vcgencmd ]; then - # for RaspberryPi only - TEMP=`echo "$(/usr/bin/vcgencmd measure_temp | sed -e "s,temp=,,g" -e "s,'C,,g" | cut -d . -f 1 ) * 1000" | bc` +elif [ -f /sys/class/thermal/thermal_zone0/temp ]; then + # used on RaspberryPi + TEMP=`cat /sys/class/thermal/thermal_zone0/temp` fi echo "$(( $TEMP / 1000 )) C"