]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
DHCP: Restart server in background
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Feb 2019 10:18:33 +0000 (10:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Feb 2019 10:18:33 +0000 (10:18 +0000)
This allows for the CGI to return quicker.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dhcp.cgi

index 82c6b20665eed798b55d8366379d463fcf508572..900ea3a9c30d1895746799f24d038b6b62c99b27 100644 (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 &';
 }
 
 #