From 47e43a0276b6d2a3bdba8af7ff55f45a4d7e193d Mon Sep 17 00:00:00 2001 From: arno Date: Wed, 22 Jul 2020 18:33:38 +0200 Subject: [PATCH] updated regular expression --- home.admin/_bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index e7b3b0f50..a50fc284e 100644 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -239,7 +239,7 @@ fi gotLocalIP=0 until [ ${gotLocalIP} -eq 1 ] do - localip=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | egrep -i '(eth|ens|enp|eno|wlan|wlp)' | tail -n1 | awk '{print $2}' | cut -f1 -d'/') + localip=$(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 [ ${#localip} -eq 0 ]; then # display user to connect LAN sed -i "s/^state=.*/state=noIP/g" ${infoFile}