nvram get wan_ipaddr | grep -q '^87' while [ $? != 0 ] ; do led amb on service wan restart sleep 2s nvram get wan_ipaddr | grep -q '^87' done led amb off led white on