From: Felix Fietkau Date: Fri, 29 Jul 2016 17:48:12 +0000 (+0200) Subject: dnsmasq: remove use of uci state for getting network ifname X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5cd88f4;p=openwrt%2Fstaging%2F981213.git dnsmasq: remove use of uci state for getting network ifname Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 4047768bba..54cb0ebfc8 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -119,12 +119,12 @@ append_ipset() { } append_interface() { - local ifname=$(uci_get_state network "$1" ifname "$1") + network_get_device ifname "$1" xappend "--interface=$ifname" } append_notinterface() { - local ifname=$(uci_get_state network "$1" ifname "$1") + network_get_device ifname "$1" xappend "--except-interface=$ifname" }