dnsmasq: fix instances in dhcp_add()
[openwrt/openwrt.git] / package / network / services / dnsmasq / files / dnsmasq.init
index 40c756b4382ea9dd496c7f2fc33def23489b93d6..5903abe6b058e3c87b303401b9d198a98e37cc52 100644 (file)
@@ -891,12 +891,13 @@ dnsmasq_start()
                # Enable RA feature for when/if it is constructed,
                # and RA is selected per interface pool (RA, DHCP, or both),
                # but no one (should) want RA broadcast in syslog
-               config_foreach dhcp_add dhcp
+               config_foreach filter_dnsmasq dhcp dhcp_add "$cfg"
                xappend "--enable-ra"
                xappend "--quiet-ra"
+               append_bool "$cfg" quietdhcp "--quiet-dhcp6"
 
        elif [ "$DNSMASQ_DHCP_VER" -gt 0 ] ; then
-               config_foreach dhcp_add dhcp
+               config_foreach filter_dnsmasq dhcp dhcp_add "$cfg"
        fi