From 101afd585754b66be1bce51803652b444f6db05f Mon Sep 17 00:00:00 2001 From: OpenFest Server User Date: Wed, 12 Oct 2022 13:57:53 +0300 Subject: [PATCH] prepwifi: handle extra IPs --- prepwifi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prepwifi.sh b/prepwifi.sh index d3baba2..ebeeb02 100644 --- a/prepwifi.sh +++ b/prepwifi.sh @@ -11,7 +11,7 @@ name=${2} cd "out/${name}/files" || exit 3 -newip=`grep ipaddr etc/config/network |tail -n1|cut -d \' -f 2` +newip=`grep ipaddr etc/config/network|grep -v \# |tail -n1|cut -d \' -f 2` if [ -z "$newip" ]; then echo ip not found