aboutsummaryrefslogtreecommitdiffstats
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
parent6f308a138d4245086e3910a66ba96b5e5ac76825 (diff)
downloadupstream-05cf9e7cb5de3f1ed87d8e77f763a39fe58fe361.tar.gz
upstream-05cf9e7cb5de3f1ed87d8e77f763a39fe58fe361.tar.bz2
upstream-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
-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() {