From 97b10e38a8c254701bb9ac8bf219e1c2fe9e3c02 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 4 Aug 2010 17:09:31 +0000 Subject: Allow UCI interface names in /etc/config/dhcp Signed-off-by: Gabriel Kerneis SVN-Revision: 22487 --- package/dnsmasq/files/dnsmasq.init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'package/dnsmasq/files') diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index e2f35e8..c69f0d2 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.1