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
This commit is contained in:
Markus Wigge 2009-05-05 11:00:00 +00:00
parent 6b3502f99c
commit e85943d41a

View File

@ -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