Created
May 11, 2013 23:21
-
-
Save Ttech/5561777 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
echo "----------------------" | |
date | |
temp=$(/opt/vc/bin/vcgencmd measure_temp | awk -F"=" '{print $2}' | awk -F"'" '{print $1}') | |
echo "temp.value $temp" | |
for volt in core sdram_c sdram_i sdram_p | |
do | |
voltage=$(/opt/vc/bin/vcgencmd measure_volts $volt | awk -F"=" '{print $2}' | tr -d "V") | |
echo "volt$volt.value $voltage" | |
done | |
echo "----------------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment