[Olsr-dev] Problem with underscores and dashes in the OpenWRT Uci configuration of olsrd

ZioPRoTo (Saverio Proto) (spam-protected)
Sat Jul 28 16:58:08 CEST 2012


I found a bug ! :)

I need this block of configuration for olsrd:

LoadPlugin "olsrd_mdns.so.1.0.1"
	PlParam "NonOlsrIf" "br-lan"
	PlParam "TTL_Check" "true"
	PlParam "MDNS_TTL" "20"

So I write this UCI syntax

config LoadPlugin
	option library 'olsrd_mdns.so.1.0.1'
	option "NonOlsrIf"  "lan"
	option "TTL_Check"  "true"
	option "MDNS_TTL"   "20"

But I find this wrong block when I check the /var/etc/olsrd.conf
(where underscores _ are changed with dashes - )

LoadPlugin "olsrd_mdns.so.1.0.1"
	PlParam "NonOlsrIf" "br-lan"
	PlParam "TTL-Check" "true"
	PlParam "MDNS-TTL" "20"

This was tested both with trunk (git commit
05358e592055bbddbbf56dd656903902b1e9d80f) and backfire branch

This should be fixed in UCI ? Or I should patch olsrd ?



More information about the Olsr-dev mailing list