interfaces: drop PPP default route handling

the relevant route is configured later in the chain using getDefaultGW(),
no need to instruct mpd5 to set it for us.
This commit is contained in:
Stephan de Wit 2023-09-27 15:59:17 +02:00
parent 42cfb664f7
commit 7a2f3f62d9

View File

@ -1019,23 +1019,7 @@ default:
set iface name {$ifcfg['if']}
EOD;
$setdefaultgw = false;
$founddefaultgw = false;
if (isset($config['gateways']['gateway_item'])) {
foreach ($config['gateways']['gateway_item'] as $gateway) {
if ($interface == $gateway['interface'] && isset($gateway['defaultgw'])) {
$setdefaultgw = true;
break;
} elseif (isset($gateway['defaultgw']) && !empty($gateway['interface'])) {
$founddefaultgw = true;
break;
}
}
}
if (!$founddefaultgw || $setdefaultgw) {
$mpdconf .= " set iface route default\n";
}
if (isset($ppp['ondemand'])) {
$mpdconf .= " set iface enable on-demand\n";
} else {