added thermal script for orangepipc

This commit is contained in:
wt
2024-12-06 00:32:34 +07:00
parent 788bd4db56
commit 680c7eeea8
+11
View File
@@ -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