Sudo added to ifconfig to ensure it runs if debug not run as root

pull/411/head
nate 8 years ago
parent ec4d2d65a6
commit 5f7c11f495

@ -118,7 +118,7 @@ function testNslookup {
### Check Pi internet connections ###
# Log the IP addresses of this Pi
IPADDR=$(ifconfig | perl -nle 's/dr:(\S+)/print $1/e')
IPADDR=$($SUDO ifconfig | perl -nle 's/dr:(\S+)/print $1/e')
echo "::: Writing local IPs to debug log"
echo "IP Addresses of this Pi:" >> $DEBUG_LOG
echo "$IPADDR" >> $DEBUG_LOG

Loading…
Cancel
Save