DHCP: Restart server in background

This allows for the CGI to return quicker.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-02-26 10:18:33 +00:00
parent 820ab96c69
commit 4eb23a9198

View File

@@ -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 &';
}
#