summaryrefslogtreecommitdiff
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorMarkus Wigge <mwigge@marcant.net>2009-05-05 11:00:00 +0000
committerMarkus Wigge <mwigge@marcant.net>2009-05-05 11:00:00 +0000
commite85943d41a4915a7515f92eecf9041642ebb08d9 (patch)
treeecbfd8dd87d29f7d48f8f67be2d28c94e7563dda /package/dnsmasq
parent6b3502f99c98cd61f861cd6039cc84deb6b4bab2 (diff)
downloadmtk-20170518-e85943d41a4915a7515f92eecf9041642ebb08d9.zip
mtk-20170518-e85943d41a4915a7515f92eecf9041642ebb08d9.tar.gz
mtk-20170518-e85943d41a4915a7515f92eecf9041642ebb08d9.tar.bz2
fixed dnsmasq init for "ignore" option
dnsmasq.init tried to set range options even when ignore was set to "1". Now the functions stops processing after evaluating the "ignore" option when the result is > 0 SVN-Revision: 15618
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 7a1530f..3f8dca9 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -220,7 +220,7 @@ dhcp_add() {
DNS_SERVERS="$DNS_SERVERS $dnsserver"
}
- append_bool "$cfg" ignore "-2 $ifname"
+ append_bool "$cfg" ignore "-2 $ifname" && return 0
config_get proto "$net" proto
[ static = "$proto" ] || return 0