dnsmasq: Set a list of addnhosts files. e.g. list 'addnhosts' '/var/etc/hosts.olsr...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 22 Nov 2009 11:52:08 +0000 (11:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 22 Nov 2009 11:52:08 +0000 (11:52 +0000)
SVN-Revision: 18470

package/dnsmasq/Makefile
package/dnsmasq/files/dnsmasq.init

index dc083f4b65beeb4fe04384b388f2390a181346a9..f2f0c9677c6e9b265e02585a97202c45b0fcf9b6 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.50
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
index ba1bf721dd29c1a76dcba9bc9511a5082f01502e..bc14aa6c4147ab7d283433bfc274068bbad45daa 100644 (file)
@@ -49,6 +49,10 @@ append_notinterface() {
        append args "-I $1"
 }
 
+append_addnhosts() {
+       append args "-H $1"
+}
+
 dnsmasq() {
        local cfg="$1"
        append_bool "$cfg" authoritative "-K"
@@ -72,13 +76,13 @@ dnsmasq() {
        append_parm "$cfg" port "-p"
        append_parm "$cfg" ednspacket_max "-P"
        append_parm "$cfg" dhcpleasemax "-X"
-       append_parm "$cfg" "addnhosts" "-H"
        append_parm "$cfg" "queryport" "-Q"
        append_parm "$cfg" "domain" "-s"
        append_parm "$cfg" "local" "-S"
        config_list_foreach "$cfg" "server" append_server
        config_list_foreach "$cfg" "interface" append_interface
        config_list_foreach "$cfg" "notinterface" append_notinterface
+       config_list_foreach "$cfg" "addnhosts" append_addnhosts
        append_parm "$cfg" "leasefile" "-l"
        append_parm "$cfg" "resolvfile" "-r"
        append_parm "$cfg" "tftp_root" "--tftp-root"