added thermal script for orangepipc
This commit is contained in:
1 parent
788bd4db56
commit
680c7eeea8
1 file changed
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -d /sys/class/thermal ]; then
|
||||||
|
echo ERROR: no thermal interfaces
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for interface in $(ls /sys/class/thermal/ | grep thermal_zone); do
|
||||||
|
echo $interface: $(($(cat /sys/class/thermal/$interface/temp)/1000))C
|
||||||
|
done
|
||||||
|
|
||||||
Reference in new issue
Block a user