base-files: move firstboot to /sbin
[openwrt.git] / package / dnsmasq / files / dnsmasq.init
index 3f8dca9..1aeeb94 100644 (file)
@@ -44,6 +44,10 @@ append_interface() {
        append args "-i $1"
 }
 
+append_notinterface() {
+       append args "-I $1"
+}
+
 dnsmasq() {
        local cfg="$1"
        append_bool "$cfg" authoritative "-K"
@@ -73,6 +77,7 @@ dnsmasq() {
        append_parm "$cfg" "local" "-S"
        config_list_foreach "$cfg" "server" append_server
        config_list_foreach "$cfg" "interface" append_interface
+       config_list_foreach "$cfg" "notinterface" append_notinterface
        append_parm "$cfg" "leasefile" "-l"
        append_parm "$cfg" "resolvfile" "-r"
        append_parm "$cfg" "tftp_root" "--tftp-root"
@@ -81,6 +86,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() {
This page took 0.026431 seconds and 4 git commands to generate.