aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-29 20:58:14 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-29 20:58:14 +0200
commitb2ddfbc1c7b935cf931b4c336969b65947270ce9 (patch)
tree34c4fd1097a0baece873a71a956978a5d345e77d /package/network/services/dnsmasq
parenteadf5fb7f8313d78fa503665e96457d080e6e3f9 (diff)
downloadupstream-b2ddfbc1c7b935cf931b4c336969b65947270ce9.tar.gz
upstream-b2ddfbc1c7b935cf931b4c336969b65947270ce9.tar.bz2
upstream-b2ddfbc1c7b935cf931b4c336969b65947270ce9.zip
dnsmasq: drop --interface and --except-interface options when the interface cannot be found
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services/dnsmasq')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index 54cb0ebfc8..2b81a61bcc 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -119,12 +119,12 @@ append_ipset() {
}
append_interface() {
- network_get_device ifname "$1"
+ network_get_device ifname "$1" || return
xappend "--interface=$ifname"
}
append_notinterface() {
- network_get_device ifname "$1"
+ network_get_device ifname "$1" || return
xappend "--except-interface=$ifname"
}