Revision 5c49cf58
Added by Ermal LUÇI almost 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
822 | 822 |
killbypid("{$g['varrun_path']}/{$ifcfg['ipaddr']}_{$interface}.pid"); |
823 | 823 |
sleep(2); |
824 | 824 |
unlink_if_exists("{$g['varetc_path']}/mpd_{$interface}.conf"); |
825 |
if (isset($ppp['ondemand'])) { |
|
826 |
$destroy = false; |
|
825 |
if (isset($ppp['ondemand']) && !$destroy) { |
|
827 | 826 |
interface_configure("wan"); |
828 | 827 |
} |
829 | 828 |
break; |
... | ... | |
2229 | 2228 |
if (!$g['booting']) { |
2230 | 2229 |
/* remove all IPv4 addresses */ |
2231 | 2230 |
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0); |
2232 |
interface_bring_down($interface); |
|
2231 |
interface_bring_down($interface, true);
|
|
2233 | 2232 |
} |
2234 | 2233 |
|
2235 | 2234 |
/* wireless configuration? */ |
Also available in: Unified diff
Ticket #667. Actually destroy when trying to reconfigure an interface.