diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-12-17 05:59:12 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-12-17 05:59:12 +0000 |
commit | d9011ad6beb377fe66ce8fb4924db2c856887fff (patch) | |
tree | 4d9dbaae22dc1019aa8a747a6e83eb302e6c7a0b /package/network/services/dnsmasq/files | |
parent | f0ecc0ec37eb95510e11bbdab414a112ae033a44 (diff) | |
download | upstream-d9011ad6beb377fe66ce8fb4924db2c856887fff.tar.gz upstream-d9011ad6beb377fe66ce8fb4924db2c856887fff.tar.bz2 upstream-d9011ad6beb377fe66ce8fb4924db2c856887fff.zip |
dnsmasq: allow de-selecting features from -full variant.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 43733
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 |