[source] dnsmasq: remove use of uci state for getting network ifname

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 29 10:51:42 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=5cd88f481202dab197e6d7d231b97ecd720d4ded

commit 5cd88f481202dab197e6d7d231b97ecd720d4ded
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Jul 29 19:48:12 2016 +0200

    dnsmasq: remove use of uci state for getting network ifname
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 4047768..54cb0eb 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"
 }
 



More information about the lede-commits mailing list