application/luci-ffwizard-leipzig: don't write system hostname to olsrd config, will...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Apr 2009 19:30:57 +0000 (19:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Apr 2009 19:30:57 +0000 (19:30 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index edcedd7..b30b596 100644 (file)
@@ -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 ""
 
        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})
 
        -- Delete old interface
        uci:delete_all("olsrd", "Interface", {interface=device})