Update bmc.sh

This commit is contained in:
Joshua M. Boniface 2017-03-17 11:21:10 -04:00 committed by GitHub
parent 347c65dd1a
commit 18cba2eb14
1 changed files with 1 additions and 1 deletions

2
bmc.sh
View File

@ -34,7 +34,7 @@ bmcinfo() {
echo -e "BMC information:"
echo -e " IP address: $( ip -4 addr list eth0 | grep inet | awk '{ print $2 }' )"
echo -e " Hostname: $( hostname )"
echo -e " BMC temperature: $( /opt/vc/bin/vcgencmd measure_temp | awk -F'=' '{ print $2 }' )"
echo -e " BMC temperature: $( sudo /opt/vc/bin/vcgencmd measure_temp | awk -F'=' '{ print $2 }' )"
}
sethostname() {
echo -n "Enter new hostname: "