Hi,
just prepared a patch to support the advanced dhcp options in dnsmasq
again. These are appended e.g. via
--dhcp-option=119,"my_custom_search_domain". Please comment if you like
it or not.
Greetings,
Thorsten
commit 558483f2b12addf3b1cfad04699d204048c7accb
Author: Thorsten Schaefer <[email protected]>
Date: Mon Nov 16 11:52:50 2009 +0100
Support RFC2132 style options in dnsmasq init script.
Options may be added to the dhcp config file as
list 'option' 'No, Option String'
and are appended as parameters to the dnsmasq call in the
following form:
--dhcp-option="No, Option String"
This way advanced functions of dnsmasq as custom search domains
are now supported again.
Signed-off-by: Thorsten Schaefer <[email protected]>
diff --git a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index ba1bf72..e36a82d 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -49,6 +49,10 @@ append_notinterface() {
append args "-I $1"
}
+append_plain_option() {
+ append args "--dhcp-option=$1"
+}
+
dnsmasq() {
local cfg="$1"
append_bool "$cfg" authoritative "-K"
@@ -79,6 +83,7 @@ dnsmasq() {
config_list_foreach "$cfg" "server" append_server
config_list_foreach "$cfg" "interface" append_interface
config_list_foreach "$cfg" "notinterface" append_notinterface
+ config_list_foreach "$cfg" "option" append_plain_option
append_parm "$cfg" "leasefile" "-l"
append_parm "$cfg" "resolvfile" "-r"
append_parm "$cfg" "tftp_root" "--tftp-root"
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel