diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-03-02 20:24:46 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-03-02 20:26:31 -0700 |
commit | 3f23b74d60f9bc5f76aa020a18d0da016c03b50b (patch) | |
tree | 0488a5da81ebff287f337465705b443a19abfc3f /usr | |
parent | cccdc09f64859470e5f5648c067373fe981faaf1 (diff) | |
download | pfsense-3f23b74d60f9bc5f76aa020a18d0da016c03b50b.zip pfsense-3f23b74d60f9bc5f76aa020a18d0da016c03b50b.tar.gz |
Only create the clone here if it does not exist, to prevent inadvertently destroying the clone before apply has been clicked.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index fa7c0b7..772ba33 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -214,7 +214,8 @@ $pconfig['mtu'] = $wancfg['mtu']; if (isset($wancfg['wireless'])) { /* Get wireless modes */ $wlanif = get_real_interface($if); - interface_wireless_clone($wlanif, $wancfg); + if (!does_interface_exist($wlanif)) + interface_wireless_clone($wlanif, $wancfg); $wlanbaseif = interface_get_wireless_base($wancfg['if']); $wl_modes = get_wireless_modes($if); $pconfig['standard'] = $wancfg['wireless']['standard']; |