diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-09-02 11:49:00 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-09-02 11:49:00 +0000 |
commit | fc418462482e5c90b1e1241a612e141b4a4bfdb6 (patch) | |
tree | 2e18b1fa01c9fdc79edb7d42fab2e832da95f0a5 /package/network | |
parent | a0d06f65aed35de3b9ea58d139606124f8b43b8f (diff) | |
download | mtk-20170518-fc418462482e5c90b1e1241a612e141b4a4bfdb6.zip mtk-20170518-fc418462482e5c90b1e1241a612e141b4a4bfdb6.tar.gz mtk-20170518-fc418462482e5c90b1e1241a612e141b4a4bfdb6.tar.bz2 |
dnsmasq: make /tmp/dnsmasq.d and /tmp/hosts preferred over UCI settings
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46770
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/dnsmasq/Makefile | 2 | ||||
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index 444459b..864914e 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.75 -PKG_RELEASE:=1 +PKG_RELEASE:=2 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 ab64e88..1b42cff 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -176,10 +176,6 @@ dnsmasq() { config_get hostsfile "$cfg" dhcphostsfile [ -e "$hostsfile" ] && xappend "--dhcp-hostsfile=$hostsfile" - mkdir -p /tmp/hosts /tmp/dnsmasq.d - xappend "--addn-hosts=/tmp/hosts" - xappend "--conf-dir=/tmp/dnsmasq.d" - local rebind config_get_bool rebind "$cfg" rebind_protection 1 [ $rebind -gt 0 ] && { @@ -215,6 +211,10 @@ dnsmasq() { xappend "--dhcp-broadcast=tag:needs-broadcast" + mkdir -p /tmp/hosts /tmp/dnsmasq.d + xappend "--addn-hosts=/tmp/hosts" + xappend "--conf-dir=/tmp/dnsmasq.d" + echo >> $CONFIGFILE } |