From 2dddf4be0dfb00a5fa4ce0454f400e29a1445088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 9 Feb 2010 19:17:52 +0000 Subject: Check what to do on the interface when hitting apply options button. --- usr/local/www/interfaces.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr') 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(); -- cgit v1.1