diff --git a/home.admin/config.scripts/internet.sh b/home.admin/config.scripts/internet.sh index 565a00193..fcbaff195 100755 --- a/home.admin/config.scripts/internet.sh +++ b/home.admin/config.scripts/internet.sh @@ -27,11 +27,11 @@ source /mnt/hdd/raspiblitz.conf 2>/dev/null # get local IP (from different sources) localip_ALL=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | egrep -i '(*[eth|ens|enp|eno|wlan|wlp][0-9]$)' | tail -n1 | awk '{print $2}' | cut -f1 -d'/') -if [ $(isValidIP ${localip_ALL}) -eq 0 ] then +if [ $(isValidIP ${localip_ALL}) -eq 0 ]; then localip_ALL="" fi localip_LAN=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | egrep -i '(*[eth][0-9]$)' | tail -n1 | awk '{print $2}' | cut -f1 -d'/') -if [ $(isValidIP ${localip_LAN}) -eq 0 ] then +if [ $(isValidIP ${localip_LAN}) -eq 0 ]; then localip_LAN="" fi localip="${localip_ALL}"