summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-02 20:24:46 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-02 20:26:31 -0700
commit3f23b74d60f9bc5f76aa020a18d0da016c03b50b (patch)
tree0488a5da81ebff287f337465705b443a19abfc3f
parentcccdc09f64859470e5f5648c067373fe981faaf1 (diff)
downloadpfsense-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.
-rwxr-xr-xusr/local/www/interfaces.php3
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'];
OpenPOWER on IntegriCloud