Ticket #13249: p

File p, 790 bytes (added by jra@…, 5 years ago)

Patch to make it possible to set txt-records

Line 
1Index: package/dnsmasq/files/dnsmasq.init
2===================================================================
3--- package/dnsmasq/files/dnsmasq.init  (revision 33502)
4+++ package/dnsmasq/files/dnsmasq.init  (working copy)
5@@ -51,6 +51,10 @@
6        xappend "$switch=$_loctmp"
7 }
8 
9+append_txtrecord() {
10+       xappend "--txt-record=$1"
11+}
12+
13 append_server() {
14        xappend "--server=$1"
15 }
16@@ -112,6 +116,7 @@
17        config_list_foreach "$cfg" "notinterface" append_notinterface
18        config_list_foreach "$cfg" "addnhosts" append_addnhosts
19        config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
20+       config_list_foreach "$cfg" "txt-record" append_txtrecord
21        append_parm "$cfg" "leasefile" "--dhcp-leasefile"
22        append_parm "$cfg" "resolvfile" "--resolv-file"
23        append_parm "$cfg" "tftp_root" "--tftp-root"