summaryrefslogtreecommitdiff
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
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 e2f35e8..c69f0d2 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() {