diff options
author | Steven Barth <steven@midlink.org> | 2014-12-17 05:59:12 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-12-17 05:59:12 +0000 |
commit | 9bc9764c57d42577fd086208501eb95c5b3ec55a (patch) | |
tree | da3025a39f3c4665b249df84482464314acf7096 /package/network/services/dnsmasq/files | |
parent | 6137fb30dbef12f46564c55772cbe1e952e61f85 (diff) | |
download | upstream-9bc9764c57d42577fd086208501eb95c5b3ec55a.tar.gz upstream-9bc9764c57d42577fd086208501eb95c5b3ec55a.tar.bz2 upstream-9bc9764c57d42577fd086208501eb95c5b3ec55a.zip |
dnsmasq: allow de-selecting features from -full variant.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43733 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/dnsmasq/files')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 942acd7ada..209952b5e6 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -85,6 +85,10 @@ append_address() { xappend "--address=$1" } +append_ipset() { + xappend "--ipset=$1" +} + append_interface() { local ifname=$(uci_get_state network "$1" ifname "$1") xappend "--interface=$ifname" @@ -135,6 +139,7 @@ dnsmasq() { append_parm "$cfg" "local" "--server" config_list_foreach "$cfg" "server" append_server config_list_foreach "$cfg" "address" append_address + config_list_foreach "$cfg" "ipset" append_ipset config_list_foreach "$cfg" "interface" append_interface config_list_foreach "$cfg" "notinterface" append_notinterface config_list_foreach "$cfg" "addnhosts" append_addnhosts |