[ar71xx] add preliminary support for the WRT160NL
[openwrt.git] / package / dnsmasq / files / dnsmasq.init
index 7a1530f..b5ecf1d 100644 (file)
@@ -81,6 +81,9 @@ dnsmasq() {
        config_get leasefile $cfg leasefile
        [ -e "$leasefile" ] || touch "$leasefile"
        config_get_bool cachelocal "$cfg" cachelocal 1
+
+       config_get hostsfile "$cfg" dhcphostsfile
+       [ -e "$hostsfile" ] && append args "--dhcp-hostsfile=$hostsfile"
 }
 
 dhcp_subscrid_add() {
@@ -220,7 +223,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
This page took 0.022337 seconds and 4 git commands to generate.