From 4eb23a91987a39c504e10d96d89bd1de46f9c0fe Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 26 Feb 2019 10:18:33 +0000 Subject: [PATCH] DHCP: Restart server in background This allows for the CGI to return quicker. Signed-off-by: Michael Tremer --- html/cgi-bin/dhcp.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi index 82c6b20665..900ea3a9c3 100644 --- a/html/cgi-bin/dhcp.cgi +++ b/html/cgi-bin/dhcp.cgi @@ -1335,7 +1335,7 @@ sub buildconf { close FILE; if ( $dhcpsettings{"ENABLE_GREEN"} eq 'on' || $dhcpsettings{"ENABLE_BLUE"} eq 'on' ) {system '/usr/local/bin/dhcpctrl enable >/dev/null 2>&1';} else {system '/usr/local/bin/dhcpctrl disable >/dev/null 2>&1';} - system '/usr/local/bin/dhcpctrl restart >/dev/null 2>&1'; + system '/usr/local/bin/dhcpctrl restart >/dev/null 2>&1 &'; } # -- 2.39.2