[OpenWrt-Devel] patch for ticket 13249

John Crispin blogic at openwrt.org
Tue Feb 9 12:31:21 EST 2016


On 09/02/2016 18:27, Jeff R. Allen wrote:
> Ping?
> 
>   -jeff

the patch was not formatted properly so that patchwork did not pick it
up and hence it got lost. try using git "send-email" to avoid this problem.

	John

> 
> On Fri, Feb 5, 2016 at 9:35 AM, Jeff R. Allen <jra at nella.org> wrote:
>> As requested in https://dev.openwrt.org/ticket/13249#comment:5:
>>
>>
>> dnsmasq: Make it possible to set txt-records
>>
>>
>> Signed-off-by: Jeff R. Allen <jra at nella.org>
>>
>> ---
>>
>>  package/network/services/dnsmasq/files/dnsmasq.init | 10 ++++++++++
>>
>>  1 file changed, 10 insertions(+)
>>
>>
>> diff --git a/package/network/services/dnsmasq/files/dnsmasq.init
>> b/package/network/services/dnsmasq/files/dnsmasq.init
>>
>> index db342e7..1d10f5e 100644
>>
>> --- a/package/network/services/dnsmasq/files/dnsmasq.init
>>
>> +++ b/package/network/services/dnsmasq/files/dnsmasq.init
>>
>> @@ -78,6 +78,14 @@ append_parm() {
>>
>>   xappend "$switch=$_loctmp"
>>
>>  }
>>
>>
>>
>> +append_ptrrecord() {
>>
>> +       xappend "--ptr-record=$1"
>>
>> +}
>>
>> +
>>
>> +append_txtrecord() {
>>
>> +       xappend "--txt-record=$1"
>>
>> +}
>>
>> +
>>
>>  append_server() {
>>
>>   xappend "--server=$1"
>>
>>  }
>>
>> @@ -156,6 +164,8 @@ dnsmasq() {
>>
>>   config_list_foreach "$cfg" "notinterface" append_notinterface
>>
>>   config_list_foreach "$cfg" "addnhosts" append_addnhosts
>>
>>   config_list_foreach "$cfg" "bogusnxdomain" append_bogusnxdomain
>>
>> + config_list_foreach "$cfg" "txtrecord" append_txtrecord
>>
>> + config_list_foreach "$cfg" "ptrrecord" append_ptrrecord
>>
>>   append_parm "$cfg" "leasefile" "--dhcp-leasefile"
>>
>>   append_parm "$cfg" "resolvfile" "--resolv-file"
>>
>>   append_parm "$cfg" "serversfile" "--servers-file"
>>
>> --
>>
>> 2.1.4
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list