dnsmasq: fix path to default dnsmasq confdir

This commit changes the default path for dnsmasq instances confdir back
to `/tmp/dnsmasq.d` which some packages in openwrt/packages repo depend
on. The directories other than `/tmp/dnsmasq.d` can still be set using
the `confdir` option for each dnsmasq instance if needed.

Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
Stan Grishin 2024-10-28 17:07:44 +00:00
parent bcd95cb9c4
commit 5e0cfb61d6

View File

@ -1146,7 +1146,7 @@ dnsmasq_start()
# Create a dnsmasq.d dir for each instance
config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq${cfg:+.$cfg}.d"
config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d"
# Ensure dnsmasqconfdir is an absolute path
[ "${dnsmasqconfdir:0:1}" = '/' ] && {
xappend "--conf-dir=$dnsmasqconfdir"