prepwifi: handle extra IPs

This commit is contained in:
OpenFest Server User 2022-10-12 13:57:53 +03:00
parent 118a799235
commit 101afd5857
1 changed files with 1 additions and 1 deletions

View File

@ -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