From: Christian Schoenebeck Date: Tue, 22 May 2018 18:36:18 +0000 (+0200) Subject: dnsmasq: use "hostsdir" instead of "addn-hosts" X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a03035dad198cd4b51645ceb43c1170f9cf95f16;p=openwrt%2Fstaging%2Fxback.git dnsmasq: use "hostsdir" instead of "addn-hosts" 1.) "addn-hosts" per default point to a file (but it supports directory) 2.) "hostsdir" only support directory with the additional benefit: New or changed files are read automatically. Signed-off-by: Christian Schoenebeck --- diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 2c71a777c3..24455ee7d9 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -938,7 +938,7 @@ dnsmasq_start() xappend "--dhcp-broadcast=tag:needs-broadcast" - xappend "--addn-hosts=$(dirname $HOSTFILE)" + xappend "--hostsdir=$(dirname $HOSTFILE)" config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d" [ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir