aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq/files/dnsmasq.init
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-09-02 11:49:00 +0000
committerSteven Barth <steven@midlink.org>2015-09-02 11:49:00 +0000
commited5933451bd9c04108514caf8505118f5e17a9cf (patch)
treecd668f7a9c3ade39621c21b47895338cdc451d90 /package/network/services/dnsmasq/files/dnsmasq.init
parentb9476667b978f4ffe7136fbde5575c360fa99c16 (diff)
downloadmaster-187ad058-ed5933451bd9c04108514caf8505118f5e17a9cf.tar.gz
master-187ad058-ed5933451bd9c04108514caf8505118f5e17a9cf.tar.bz2
master-187ad058-ed5933451bd9c04108514caf8505118f5e17a9cf.zip
dnsmasq: make /tmp/dnsmasq.d and /tmp/hosts preferred over UCI settings
Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/dnsmasq/files/dnsmasq.init')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index ab64e88a93..1b42cff394 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
}