dhcp: Oops, this version of dhcpd is very strict.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Jul 2010 17:01:44 +0000 (19:01 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Jul 2010 17:01:44 +0000 (19:01 +0200)
html/cgi-bin/dhcp.cgi

index fcf42de..cde6065 100644 (file)
@@ -1199,7 +1199,7 @@ sub buildconf {
            $key++;
        }
     }
            $key++;
        }
     }
-    print FILE "include ${General::swroot}/dhcp/dhcpd.conf.local\n";
+    print FILE "include \"${General::swroot}/dhcp/dhcpd.conf.local\";\n";
     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';}
     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';}