From 8b5fd9705caf989384198b8ccd0cc89845f29600 Mon Sep 17 00:00:00 2001
From: jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Wed, 4 Aug 2010 17:09:31 +0000
Subject: [PATCH] Allow UCI interface names in /etc/config/dhcp Signed-off-by:
 Gabriel Kerneis <kerneis@pps.jussieu.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22487 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/dnsmasq/files/dnsmasq.init | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index e2f35e8aa..c69f0d2d0 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -42,11 +42,13 @@ append_server() {
 }
 
 append_interface() {
-	append args "-i $1"
+	local ifname=$(uci_get_state network "$1" ifname "$1")
+	append args "-i $ifname"
 }
 
 append_notinterface() {
-	append args "-I $1"
+	local ifname=$(uci_get_state network "$1" ifname "$1")
+	append args "-I $ifname"
 }
 
 append_addnhosts() {
-- 
cgit v1.2.3