mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
xbmc-frodo: add RPi support to cputemp script
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a1a5eef582
commit
9ad4f93a68
@ -46,6 +46,9 @@ elif [ -f /sys/class/hwmon/hwmon0/device/temp1_input ]; then
|
|||||||
elif [ -f /sys/class/hwmon/hwmon0/device/temp2_input ]; then
|
elif [ -f /sys/class/hwmon/hwmon0/device/temp2_input ]; then
|
||||||
# used on ION systems
|
# used on ION systems
|
||||||
TEMP=`cat /sys/class/hwmon/hwmon0/device/temp2_input`
|
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`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$(( $TEMP / 1000 )) C"
|
echo "$(( $TEMP / 1000 )) C"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user