From 1ff8ffc2cf27dcd8c4eae9b8f9dec0337ad1e0e8 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 23 Jul 2020 15:06:15 +0200 Subject: [PATCH] fix syntax --- home.admin/config.scripts/internet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}"