summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-31 08:07:50 +0000
committerErmal <eri@pfsense.org>2013-01-31 08:07:50 +0000
commit4144aa81332d3500e107789c8e545434fe960752 (patch)
tree56b9dd8e6c6e1b1324188be21539bd0ebf6f4b28 /usr/local
parentb0cde9765e695e0b1af898227d24649e4fde4ec3 (diff)
downloadpfsense-4144aa81332d3500e107789c8e545434fe960752.zip
pfsense-4144aa81332d3500e107789c8e545434fe960752.tar.gz
Do the right thing here
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 5508c8b..2e19924 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -355,8 +355,11 @@ if ($_POST['apply']) {
if (file_exists("{$g['tmp_path']}/.interfaces.apply")) {
$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply"));
foreach ($toapplylist as $ifapply => $ifcfgo) {
- interface_bring_down($ifapply, false, $ifcfgo);
- interface_configure($ifapply);
+ if (isset($config['interfaces'][$ifapply]['enable'])) {
+ interface_bring_down($ifapply, false, $ifcfgo);
+ interface_configure($ifapply);
+ } else
+ interface_bring_down($ifapply, false, $ifcfgo);
}
}
/* restart snmp so that it binds to correct address */
OpenPOWER on IntegriCloud