mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
add conf-dir option to dnsmasq.conf, closes #403
this allows custom configuration stored in files in /etc/dnsmasq.d. raspap does not touch them and they'll always be loaded. also creates /etc/dnsmasq.d if it doesn't exist.
This commit is contained in:
@@ -67,6 +67,8 @@ function DisplayDHCPConfig()
|
||||
$config .= PHP_EOL;
|
||||
}
|
||||
|
||||
$config .= "conf-dir=/etc/dnsmasq.d".PHP_EOL;
|
||||
|
||||
file_put_contents("/tmp/dnsmasqdata", $config);
|
||||
system('sudo cp /tmp/dnsmasqdata '.RASPI_DNSMASQ_CONFIG, $return);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user