application/luci-ffwizard-leipzig: don't write system hostname to olsrd config, will be taken from system config
This commit is contained in:
parent
38a52d9a29
commit
8dac35f7cd
1 changed files with 0 additions and 13 deletions
|
@ -262,19 +262,6 @@ function olsr.write(self, section, value)
|
|||
local community = net:formvalue(section)
|
||||
local external = community and uci:get("freifunk", community, "external") or ""
|
||||
|
||||
-- Configure nameservice
|
||||
local hostname
|
||||
uci:foreach("system", "system", function(s) hostname = s.hostname end)
|
||||
|
||||
if hostname then
|
||||
uci:foreach("olsrd", "LoadPlugin",
|
||||
function(s)
|
||||
if s.library == "olsrd_nameservice.so.0.3" then
|
||||
uci:set("olsrd", s['.name'], "name", hostname)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
-- Delete old interface
|
||||
uci:delete_all("olsrd", "Interface", {interface=device})
|
||||
|
||||
|
|
Loading…
Reference in a new issue