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