From 561077c71dcd38d40e0cf423db88d85f236cef43 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sun, 24 Jun 2018 14:28:42 +0200 Subject: [PATCH] routing, fix setting the default-route when the configured default gateway is a dynamic pppoe gateway --- src/etc/rc.newwanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/rc.newwanip b/src/etc/rc.newwanip index 2989ac19f7..b5c97dc1e2 100755 --- a/src/etc/rc.newwanip +++ b/src/etc/rc.newwanip @@ -183,7 +183,7 @@ if (!empty($gre)) { } } -if (platform_booting() && in_array(substr($interface_real, 0, 3), array("ppp", "ppt", "l2t"))) { +if (platform_booting() && !in_array(substr($interface_real, 0, 3), array("ppp", "ppt", "l2t"))) { // unlike dhcp interfaces which wait until they get an ip, a ppp connection lets the boot continue while // trying to aquire a ip address so to avoid a race condition where it would be possible that the default // route would not be set, this script must continue to use the new assigned ip even while booting