package/busybox: Fix check for IPv6 default route in udhcpc
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 2 Feb 2021 01:54:52 +0000 (17:54 -0800)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 2 Feb 2021 15:35:56 +0000 (16:35 +0100)
commit09ad6f392fca86dc220f0ba3129512ab4f3469e1
tree206ff934112bd617dadaccc550eb0e323fb73fe9
parentff852b0de406b3e88af3ea282ba470c68b7c8d8d
package/busybox: Fix check for IPv6 default route in udhcpc

The check for a default route is inverted, causing the script to wait
for the timeout even when a default IPv6 route is available. Fix this up
so that it exits early as expected.

Reported-by: Bhattiprolu RaviKumar <ravikumar.bhattiprolu@gmail.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/busybox/udhcpc.script