summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-04 17:09:31 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-04 17:09:31 +0000
commit8b5fd9705caf989384198b8ccd0cc89845f29600 (patch)
tree061aea9604afd81d219535580d5ccd0ad1f633e2 /package/dnsmasq
parentcaec700c9a87d1565d4e3e37c5c4ce9a5e51c052 (diff)
[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
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dnsmasq.init6
1 files 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() {