mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: change cputemp script to support more devices
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
27b853cabe
commit
4cb1a2b2f0
@ -25,7 +25,8 @@ 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 | 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);}'`
|
||||
fi
|
||||
|
||||
echo "${TEMP} C"
|
||||
|
Loading…
x
Reference in New Issue
Block a user