mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
xbmc: use lm_sensors only for getting cpu temp
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
aa3736b8f7
commit
78485c000c
@ -22,9 +22,7 @@
|
|||||||
|
|
||||||
TEMP="0"
|
TEMP="0"
|
||||||
|
|
||||||
if [ -f /sys/class/thermal/thermal_zone0/temp ]; then
|
if [ -f /usr/bin/sensors ]; then
|
||||||
TEMP=`echo "$(cat /sys/class/thermal/thermal_zone0/temp)/1000" |bc`
|
|
||||||
elif [ -f /usr/bin/sensors ]; then
|
|
||||||
TEMP=`/usr/bin/sensors -u | tail -n6 | 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
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user