diff options
author | Ermal <eri@pfsense.org> | 2013-01-31 08:07:50 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-31 08:07:50 +0000 |
commit | 4144aa81332d3500e107789c8e545434fe960752 (patch) | |
tree | 56b9dd8e6c6e1b1324188be21539bd0ebf6f4b28 /usr/local | |
parent | b0cde9765e695e0b1af898227d24649e4fde4ec3 (diff) | |
download | pfsense-4144aa81332d3500e107789c8e545434fe960752.zip pfsense-4144aa81332d3500e107789c8e545434fe960752.tar.gz |
Do the right thing here
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces.php | 7 |
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 */ |