summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/interfaces.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 2e0097b..1ff6dcc 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -266,7 +266,10 @@ if ($_POST['apply']) {
else {
unlink_if_exists("{$g['tmp_path']}/config.cache");
clear_subsystem_dirty('interfaces');
- interface_configure($if, true);
+ if (isset($pconfig['enable']))
+ interface_configure($if, true);
+ else
+ interface_bring_down($if);
/* restart snmp so that it binds to correct address */
services_snmpd_configure();
OpenPOWER on IntegriCloud