aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-12-13 14:18:31 +0100
committerHans Dedecker <dedeckeh@gmail.com>2016-12-13 23:32:20 +0100
commit942904f7b9363f231a9623d7d5501ae0cc7184d2 (patch)
tree41d1c61f5f2c66213d58ec12d7f3f94449ad74c7
parent66482e179bf463d286419319b33a46ad6a507453 (diff)
downloadupstream-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>
-rw-r--r--package/network/services/dnsmasq/Makefile2
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index 861cda7fbe..f5c665b976 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -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
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