[PATCH] Allow UCI interface names in /etc/config/dhcp
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 4 Aug 2010 17:09:31 +0000 (17:09 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 4 Aug 2010 17:09:31 +0000 (17:09 +0000)
Signed-off-by: Gabriel Kerneis <kerneis@pps.jussieu.fr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22487 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/dnsmasq/files/dnsmasq.init

index e2f35e8..c69f0d2 100644 (file)
@@ -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() {
This page took 0.027167 seconds and 4 git commands to generate.