X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6b945ca26e2ae0efaa0efc59cd6f1c46ddf759b0..3c4461ee1acb5168c96cbd9b5e93bfce909751ea:/package/dnsmasq/files/dnsmasq.init diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index ec595afce..75b20df0e 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -50,17 +50,19 @@ dnsmasq() { append_bool "$cfg" localise_queries "-y" append_bool "$cfg" readethers "-Z" append_bool "$cfg" dbus "-l" + append_bool "$cfg" boguspriv "-b" + append_bool "$cfg" expandhosts "-E" append_parm "$cfg" dnsforwardmax "-0" append_parm "$cfg" port "-p" append_parm "$cfg" ednspacket_max "-P" append_parm "$cfg" dhcpleasemax "-X" - - config_get addnhosts "$cfg" addnhosts - config_get interface "$cfg" interface - config_get exceptinterface "$cfg" exceptinterface - config_get queryport "$cfg" queryport - config_get domain "$cfg" domain + append_parm "$cfg" "addnhosts" "-H" + append_parm "$cfg" "queryport" "-Q" + append_parm "$cfg" "domain" "-s" + append_parm "$cfg" "local" "-S" + append_parm "$cfg" "leasefile" "-l" + append_parm "$cfg" "resolvfile" "-r" } dhcp_subscrid_add() { @@ -142,6 +144,8 @@ dhcp_host_add() { config_get mac "$cfg" mac [ -n "$mac" ] || return 0 + config_get ip "$cfg" ip + [ -n "$ip" ] || return 0 append args "--dhcp-host=$mac,$ip"