Revision 3896d93e
Added by Erik Fonnesbeck almost 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2350 | 2350 |
if (!$g['booting']) { |
2351 | 2351 |
/* remove all IPv4 addresses */ |
2352 | 2352 |
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0); |
2353 |
interface_bring_down($interface, true); |
|
2353 |
|
|
2354 |
switch ($wancfg['ipaddr']) { |
|
2355 |
case 'pppoe': |
|
2356 |
case 'l2tp': |
|
2357 |
case 'pptp': |
|
2358 |
case 'ppp': |
|
2359 |
interface_bring_down($interface, true); |
|
2360 |
break; |
|
2361 |
default: |
|
2362 |
interface_bring_down($interface); |
|
2363 |
break; |
|
2364 |
} |
|
2354 | 2365 |
} |
2355 | 2366 |
|
2356 | 2367 |
/* wireless configuration? */ |
Also available in: Unified diff
Do this check earlier rather than later, instead of moving the interface_bring_down call.