summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 0627e32..e0ab071 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -359,11 +359,9 @@ 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) {
- if (isset($config['interfaces'][$ifapply]['enable'])) {
- interface_bring_down($ifapply, false, $ifcfgo);
+ interface_bring_down($ifapply, false, $ifcfgo);
+ if (isset($config['interfaces'][$ifapply]['enable']))
interface_configure($ifapply, true);
- } else
- interface_bring_down($ifapply, true, $ifcfgo);
}
}
/* restart snmp so that it binds to correct address */
OpenPOWER on IntegriCloud