Created
November 8, 2016 23:00
-
-
Save awaxa/15fc41b65438434e45908251a9c4ddbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n 'CPU Temperatures (Celsius): ' | |
for thermal_zone in thermal_zone3 thermal_zone4 ; do | |
echo -n "$(echo 'scale=1;' $(cat /sys/class/thermal/$thermal_zone/temp) '/1000' | bc) " | |
done | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note: you may need to
apt-get install bc