dnsmasq: Specify directory /tmp/hosts as argument for --addn-hosts
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 13 Dec 2016 13:18:31 +0000 (14:18 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 13 Dec 2016 22:32:20 +0000 (23:32 +0100)
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>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init

index 861cda7fbe57705f8a5e09a584f61720d1836987..f5c665b976a31a78ee34dbd05e705d8427bcb976 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.76
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
index eebf5c76c89479f4a9653059110432a4faa748d4..67808d5593569f0b5be0b028ae8b272d08aeef8d 100644 (file)
@@ -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