dnsmasq: use hostsdir instead of addn-hosts
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 10 May 2019 19:14:59 +0000 (20:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 21 Feb 2024 21:31:36 +0000 (22:31 +0100)
commitd5d4043c935cd136a0df74ec671c2f77940c16e0
tree22d98beda1d783253f4454e1ed690a16ad09cf28
parentb2715bbf8ffe687d909c7c5e0c3bd6805adde3ce
dnsmasq: use hostsdir instead of addn-hosts

dnsmasq will dynamically scan changes/additions to hosts in hostsdir whereas
addn-hosts needs a SIGHUP.

Take advantage of this automatic updating in preparation for a dhcpd
update take only signals
addn-hosts

-       xappend "--addn-hosts=$(dirname $HOSTFILE)"
+       xappend "--hostsdir=$(dirname $HOSTFILE)"

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
package/network/services/dnsmasq/files/dnsmasq.init