From: Steven Barth Date: Fri, 17 May 2013 14:44:12 +0000 (+0000) Subject: dnsmasq: add directory for external hosts-files X-Git-Tag: reboot~10422 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=dd161ae62b19ee40db81a544b879eeaf22766e58;ds=sidebyside dnsmasq: add directory for external hosts-files SVN-Revision: 36655 --- diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index 5ad32f2106..467c93494e 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.66 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 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 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 ] && {