mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-03 23:05:13 +08:00
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:
parent
bcd95cb9c4
commit
5e0cfb61d6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user