From: jow Date: Wed, 4 Aug 2010 17:09:31 +0000 (+0000) Subject: [PATCH] Allow UCI interface names in /etc/config/dhcp X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/8b5fd9705caf989384198b8ccd0cc89845f29600?ds=inline;hp=caec700c9a87d1565d4e3e37c5c4ce9a5e51c052 [PATCH] Allow UCI interface names in /etc/config/dhcp Signed-off-by: Gabriel Kerneis git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22487 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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() {