summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_dhcp_edit.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 4a284fd..d1d6ac2 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -126,8 +126,13 @@ if ($_POST) {
if (isset($config['dhcpd'][$if]['staticarp']))
interfaces_staticarp_configure($if);
- services_dhcpd_configure();
-
+ $retval = 0;
+ config_lock();
+ $retval = services_dhcpd_configure();
+ config_unlock();
+
+ $savemsg = get_std_save_message($retval);
+
header("Location: services_dhcp.php?if={$if}");
exit;
}
OpenPOWER on IntegriCloud