aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
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
commit97b10e38a8c254701bb9ac8bf219e1c2fe9e3c02 (patch)
treee0ea2876aee3beb324db949d5198a373e9048de9 /package/dnsmasq/files
parent1980190a5a96fba4d36be8f8037ba9925c263b57 (diff)
downloadupstream-97b10e38a8c254701bb9ac8bf219e1c2fe9e3c02.tar.gz
upstream-97b10e38a8c254701bb9ac8bf219e1c2fe9e3c02.tar.bz2
upstream-97b10e38a8c254701bb9ac8bf219e1c2fe9e3c02.zip
Allow UCI interface names in /etc/config/dhcp Signed-off-by: Gabriel Kerneis <kerneis@pps.jussieu.fr>
SVN-Revision: 22487
Diffstat (limited to 'package/dnsmasq/files')
-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() {