mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
xbmc: fix script to show cpu temperature
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
TEMP="0"
|
||||
|
||||
if [ -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 temp._input | awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}'`
|
||||
fi
|
||||
|
||||
echo "${TEMP} C"
|
||||
|
||||
Reference in New Issue
Block a user