Revision a5489081
Added by Scott Ullrich over 19 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
1204 | 1204 |
|
1205 | 1205 |
/* parse config.xml again */ |
1206 | 1206 |
$config = parse_config(true); |
1207 |
|
|
1207 |
|
|
1208 |
$iflist = array("lan" => "LAN"); |
|
1209 |
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) |
|
1210 |
$iflist['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; |
|
1211 |
foreach ($iflist as $ifent => $ifname) { |
|
1212 |
$ifname_real = convert_friendly_interface_to_real_interface_name($ifname); |
|
1213 |
mwexec("/sbin/ifconfig {$ifname_real} down"); |
|
1214 |
} |
|
1215 |
|
|
1208 | 1216 |
/* set up LAN interface */ |
1209 | 1217 |
interfaces_lan_configure(); |
1210 | 1218 |
|
... | ... | |
1320 | 1328 |
/* generate resolv.conf */ |
1321 | 1329 |
system_resolvconf_generate(); |
1322 | 1330 |
|
1331 |
$iflist = array("lan" => "LAN"); |
|
1332 |
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) |
|
1333 |
$iflist['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; |
|
1334 |
foreach ($iflist as $ifent => $ifname) { |
|
1335 |
$ifname_real = convert_friendly_interface_to_real_interface_name($ifname); |
|
1336 |
mwexec("/sbin/ifconfig {$ifname_real} down"); |
|
1337 |
} |
|
1338 |
|
|
1323 | 1339 |
/* set up LAN interface */ |
1324 | 1340 |
interfaces_lan_configure(); |
1325 | 1341 |
|
Also available in: Unified diff
Down all interfaces before reloading settings. Otherwise PF gets wacked out.