diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-13 14:18:31 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-13 23:32:20 +0100 |
commit | 942904f7b9363f231a9623d7d5501ae0cc7184d2 (patch) | |
tree | 41d1c61f5f2c66213d58ec12d7f3f94449ad74c7 /package/network/services/dnsmasq/files | |
parent | 66482e179bf463d286419319b33a46ad6a507453 (diff) | |
download | upstream-942904f7b9363f231a9623d7d5501ae0cc7184d2.tar.gz upstream-942904f7b9363f231a9623d7d5501ae0cc7184d2.tar.bz2 upstream-942904f7b9363f231a9623d7d5501ae0cc7184d2.zip |
dnsmasq: Specify directory /tmp/hosts as argument for --addn-hosts
Let dnsmasq read all hosts files in /tmp/hosts directory by specifying
/tmp/hosts as argument of --addn-host
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'package/network/services/dnsmasq/files')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 2 |
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 eebf5c76c8..67808d5593 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -670,7 +670,7 @@ dnsmasq_start() xappend "--dhcp-broadcast=tag:needs-broadcast" - xappend "--addn-hosts=$HOSTFILE" + xappend "--addn-hosts=$(dirname $HOSTFILE)" config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d" [ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir |