Changeset 4420

Show
Ignore:
Timestamp:
04/12/09 21:30:57 (4 years ago)
Author:
jow
Message:

application/luci-ffwizard-leipzig: don't write system hostname to olsrd config, will be taken from system config

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

    r4365 r4420  
    262262    local community = net:formvalue(section) 
    263263    local external  = community and uci:get("freifunk", community, "external") or "" 
    264  
    265     -- Configure nameservice 
    266     local hostname 
    267     uci:foreach("system", "system", function(s) hostname = s.hostname end) 
    268  
    269     if hostname then 
    270         uci:foreach("olsrd", "LoadPlugin", 
    271             function(s) 
    272                 if s.library == "olsrd_nameservice.so.0.3" then 
    273                     uci:set("olsrd", s['.name'], "name", hostname) 
    274                 end 
    275             end) 
    276     end 
    277264 
    278265    -- Delete old interface