routing, fix setting the default-route when the configured default gateway is a dynamic pppoe gateway

This commit is contained in:
PiBa-NL 2018-06-24 14:28:42 +02:00
parent f54ca2e14f
commit 561077c71d

View File

@ -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