nvram get wan_gateway | grep -q '^xxx\.xxx\|^yyy\.yyy\|^zzz\.zzz' while [ $? != 0 ] ; do led amb on service wan restart sleep 2s nvram get wan_gateway | grep -q '^xxx\.xxx\|^yyy\.yyy\|^zzz\.zzz' done led amb off led white on