diff options
author | Jo-Philipp Wich <jo@mein.io> | 2017-07-10 10:53:29 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-10-25 09:57:58 +0200 |
commit | 367b4563b4cd466188bd4c8cf24ff0a125029c1c (patch) | |
tree | 61173d5b87bf1eb0a5f905e2620260ad72e88242 /package/network | |
parent | ee6fa8d8396922a3cfda58f5ee56a6efe67ccf80 (diff) | |
download | upstream-367b4563b4cd466188bd4c8cf24ff0a125029c1c.tar.gz upstream-367b4563b4cd466188bd4c8cf24ff0a125029c1c.tar.bz2 upstream-367b4563b4cd466188bd4c8cf24ff0a125029c1c.zip |
dnsmasq: restore ability to include/exclude raw device names
Commit 5cd88f4 "dnsmasq: remove use of uci state for getting network ifname"
broke the ability to specify unmanaged network device names for inclusion
and exclusion in the uci configuration.
Restore support for raw device names by falling back to the input value
when "network_get_device" yields no result.
Fixes FS#876.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a89c36b50875e61c790113d3adee10621575788a)
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/dnsmasq/Makefile | 2 | ||||
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index 94fd70232c..8eed5427a4 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsmasq PKG_VERSION:=2.78 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq/ diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index a762cd3309..1ecbb3c689 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -116,12 +116,12 @@ append_ipset() { } append_interface() { - network_get_device ifname "$1" || return + network_get_device ifname "$1" || ifname="$1" xappend "--interface=$ifname" } append_notinterface() { - network_get_device ifname "$1" || return + network_get_device ifname "$1" || ifname="$1" xappend "--except-interface=$ifname" } |