summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 6b9736b..05fd9cf 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -171,10 +171,12 @@ if ($_POST) {
else
unset($config['dhcpd'][$if]['enable']);
- if($_POST['staticarp'] == "yes")
+ if($_POST['staticarp'] == "yes") {
$config['dhcpd'][$if]['staticarp'] = true;
- else
+ } else {
unset($config['dhcpd'][$if]['staticarp']);
+ mwexec("/usr/sbin/arp -da");
+ }
write_config();
OpenPOWER on IntegriCloud