This patch reverts commit
c603419 ("wait for IPv6 RA if using none/static IPv6 assignment").
It's not generally correct wait for a default route to be established
for an interface, or to wait for "proto ra" routes in general.
For example, if the system is a router itself, it will receive no
RAs. In isolated networks, no gateway may be advertized, either.
This is similar in spirit to
76f6566 ("Revert "wait for IPv6 RA
if using none/static IPv6 assignment"")
Whatever
c603419 ("wait for IPv6 RA if using none/static IPv6 assignment")
was supposed to achieve, it should be done differently.
while [ $cnt -lt $timeout ]; do
[ -n "$(ip -6 addr show dev "$@")" ] \
&& [ -z "$(ip -6 addr show dev "$@" tentative)" ] \
- && { ip -6 route list proto ra dev "$@" | grep -q ^default; } \
&& return 0
[ -n "$(ip -6 addr show dev "$@" dadfailed)" ] \
&& return 1