|
@@ -36,6 +36,10 @@ append_parm() {
|
|
|
append args "$switch $_loctmp"
|
|
append args "$switch $_loctmp"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+append_server() {
|
|
|
|
|
+ append args "-S $1"
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
dnsmasq() {
|
|
dnsmasq() {
|
|
|
local cfg="$1"
|
|
local cfg="$1"
|
|
|
append_bool "$cfg" authoritative "-K"
|
|
append_bool "$cfg" authoritative "-K"
|
|
@@ -62,6 +66,7 @@ dnsmasq() {
|
|
|
append_parm "$cfg" "queryport" "-Q"
|
|
append_parm "$cfg" "queryport" "-Q"
|
|
|
append_parm "$cfg" "domain" "-s"
|
|
append_parm "$cfg" "domain" "-s"
|
|
|
append_parm "$cfg" "local" "-S"
|
|
append_parm "$cfg" "local" "-S"
|
|
|
|
|
+ config_list_foreach "$cfg" "server" append_server
|
|
|
append_parm "$cfg" "leasefile" "-l"
|
|
append_parm "$cfg" "leasefile" "-l"
|
|
|
append_parm "$cfg" "resolvfile" "-r"
|
|
append_parm "$cfg" "resolvfile" "-r"
|
|
|
append_parm "$cfg" "tftp_root" "--tftp-root"
|
|
append_parm "$cfg" "tftp_root" "--tftp-root"
|