dnsmasq: drop --interface and --except-interface options when the interface cannot...
authorFelix Fietkau <nbd@nbd.name>
Fri, 29 Jul 2016 18:58:14 +0000 (20:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 29 Jul 2016 18:58:14 +0000 (20:58 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/dnsmasq/files/dnsmasq.init

index 54cb0ebfc8c8c80445561adec2d4a81770d12841..2b81a61bcc17c63fc5a86204c22b630babb20ed2 100644 (file)
@@ -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"
 }