Ticket #13249: p.2

File p.2, 902 bytes (added by jra@…, 5 years ago)

Correct patch (ignore the other one)

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,14 @@
6        xappend "$switch=$_loctmp"
7 }
8 
9+append_ptrrecord() {
10+       xappend "--ptr-record=$1"
11+}
12+
13+append_txtrecord() {
14+       xappend "--txt-record=$1"
15+}
16+
17 append_server() {
18        xappend "--server=$1"
19 }
20@@ -112,6 +120,8 @@
21        config_list_foreach "$cfg" "notinterface" append_notinterface
22        config_list_foreach "$cfg" "addnhosts" append_addnhosts
23        config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
24+       config_list_foreach "$cfg" "txtrecord" append_txtrecord
25+       config_list_foreach "$cfg" "ptrrecord" append_ptrrecord
26        append_parm "$cfg" "leasefile" "--dhcp-leasefile"
27        append_parm "$cfg" "resolvfile" "--resolv-file"
28        append_parm "$cfg" "tftp_root" "--tftp-root"