aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>2018-05-22 20:36:18 +0200
committerHans Dedecker <dedeckeh@gmail.com>2018-05-23 22:13:26 +0200
commita03035dad198cd4b51645ceb43c1170f9cf95f16 (patch)
tree2856f862d9b55e7b5960fe1ba92d68cff70e85dd /package/network
parent43d70a7a9d7e4f301d6ad37f0b934a31bce6a276 (diff)
downloadupstream-a03035dad198cd4b51645ceb43c1170f9cf95f16.tar.gz
upstream-a03035dad198cd4b51645ceb43c1170f9cf95f16.tar.bz2
upstream-a03035dad198cd4b51645ceb43c1170f9cf95f16.zip
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 <christian.schoenebeck@gmail.com>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
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