ulfben Aug 10th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #check-temperature.sh - prints the value of all thermal sensors
- for i in /sys/class/thermal/*/temp
- value=$(cat "$i")
- value=$(echo "$value/1000.0" | bc) #basic calculator
- printf "%s %.1f%s \\n" "$fileName" "$value" "$CELCIUS"
RAW Paste Data