dnsmasq: add directory for external hosts-files
authorSteven Barth <cyrus@openwrt.org>
Fri, 17 May 2013 14:44:12 +0000 (14:44 +0000)
committerSteven Barth <cyrus@openwrt.org>
Fri, 17 May 2013 14:44:12 +0000 (14:44 +0000)
SVN-Revision: 36655

package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init

index 5ad32f21066eb59e19e9b1d1bb0cfb50706c76b0..467c93494ea45d291714cbe4aac74971395316a6 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.66
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
index 62adb26233ce1f9af8eeccae836688023b19ccc8..cc5ff7da6a639dad74d10477b657197d80d6707e 100644 (file)
@@ -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 ] && {