From 5e0cfb61d63c2a24284c6cb85796b0b9adb74691 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Mon, 28 Oct 2024 17:07:44 +0000 Subject: [PATCH] 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 --- package/network/services/dnsmasq/files/dnsmasq.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index b864ea90699..41ba10baa87 100755 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -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"