diff options
author | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-17 14:44:12 +0000 |
---|---|---|
committer | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-17 14:44:12 +0000 |
commit | 8726a27e768a0b9c96660ac548d103faaa7f7ec2 (patch) | |
tree | f351c4146f90b56cd4c55926336e212b1d712695 /package/network/services/dnsmasq/files | |
parent | 737c2bbbdea3b2aff7386fdca0ffb12c5994b51d (diff) |
dnsmasq: add directory for external hosts-files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36655 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/dnsmasq/files')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 62adb26233..cc5ff7da6a 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -134,6 +134,9 @@ dnsmasq() { config_get hostsfile "$cfg" dhcphostsfile [ -e "$hostsfile" ] && xappend "--dhcp-hostsfile=$hostsfile" + mkdir -p /tmp/hosts + xappend "--addn-hosts=/tmp/hosts" + local rebind config_get_bool rebind "$cfg" rebind_protection 1 [ $rebind -gt 0 ] && { |