Revision 67e77adf
Added by Erik Fonnesbeck almost 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2285 | 2285 |
/* bring the clones back up that were previously up */ |
2286 | 2286 |
foreach ($clones_up as $clone_if) { |
2287 | 2287 |
mwexec("{$ifconfig} " . escapeshellarg($clone_if) . " up"); |
2288 |
|
|
2289 |
/* |
|
2290 |
* Rerun the setup script for the interface if it isn't this interface, the interface |
|
2291 |
* is in infrastructure mode, and WPA is enabled. |
|
2292 |
* This can be removed if wpa_supplicant stops dying when you bring the interface down. |
|
2293 |
*/ |
|
2294 |
if ($clone_if != $if) { |
|
2295 |
$friendly_if = convert_real_interface_to_friendly_interface_name($clone_if); |
|
2296 |
if ( !empty($friendly_if) |
|
2297 |
&& $config['interfaces'][$friendly_if]['wireless']['mode'] == "bss" |
|
2298 |
&& isset($config['interfaces'][$friendly_if]['wireless']['wpa']['enable']) ) { |
|
2299 |
mwexec("/bin/sh {$g['tmp_path']}/{$clone_if}_setup.sh"); |
|
2300 |
} |
|
2301 |
} |
|
2288 | 2302 |
} |
2289 | 2303 |
} |
2290 | 2304 |
|
Also available in: Unified diff
Protect against wpa_supplicant dying when bringing down interfaces to change wireless regulatory configuration.