Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13410 closed defect (fixed)

olsrd init script creates olsrd.conf with failures

Reported by: ab@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: olsrd init Cc:

Description

with r36410 the olsr init script doesn't transform uci olsr config to /var/etc/olsrd.conf correctly.

underscores in option names are replaced by blanks instead of dash. option names with underscore are used with the nameservice plugin, for example.

root@ffweimar-hybrid--23:~ cat /etc/config/olsrd |grep nameserv -A 9 -B 1
config 'LoadPlugin'
        option 'library' 'olsrd_nameservice.so.0.3'
        option 'ignore' '0'
        option 'hosts_file' '/var/etc/hosts'
        option 'suffix' '.olsr'
        option 'interval' '180'
        option 'timeout' '3600'
        option 'latlon_file' '/var/run/latlon.js'
        option 'latlon_infile' '/var/run/latlon.txt'
        list 'name' 'ffweimar-hybrid--23'
root@ffweimar-hybrid--23:~ cat /var/etc/olsrd.conf |grep nameserv -A 9
LoadPlugin "olsrd_nameservice.so.0.3"
{
        PlParam "name" "ffweimar-hybrid--23"
        PlParam "latlon infile" "/var/run/latlon.txt"
        PlParam "hosts file" "/var/etc/hosts"
        PlParam "suffix" ".olsr"
        PlParam "interval" "180"
        PlParam "timeout" "3600"
        PlParam "latlon file" "/var/run/latlon.js"
}

Attachments (1)

olsrd.init.diff (5.6 KB) - added by ab@… 5 years ago.
diff of a working olsrd init script to the current one

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by bittorf@…

i will fix that, thanks for reporting.

Changed 5 years ago by ab@…

diff of a working olsrd init script to the current one

comment:2 Changed 5 years ago by bittorf@…

fixed with https://github.com/openwrt-routing/packages/commit/16f7810f11cbf74e433f74beb95f9861e4e56fa1 - thanks to andi + thomas for digging through the code 8-)

comment:3 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.