aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-08-04 17:09:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-08-04 17:09:31 +0000
commit05cf9e7cb5de3f1ed87d8e77f763a39fe58fe361 (patch)
tree061aea9604afd81d219535580d5ccd0ad1f633e2 /package/dnsmasq
parent6f308a138d4245086e3910a66ba96b5e5ac76825 (diff)
downloadmaster-187ad058-05cf9e7cb5de3f1ed87d8e77f763a39fe58fe361.tar.gz
master-187ad058-05cf9e7cb5de3f1ed87d8e77f763a39fe58fe361.tar.bz2
master-187ad058-05cf9e7cb5de3f1ed87d8e77f763a39fe58fe361.zip
[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 e2f35e8aad..c69f0d2d08 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() {