applications/luci-ffwizard-leipzig: setup olsr hosts file after recreating nameservic...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 27 May 2009 20:44:20 +0000 (20:44 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 27 May 2009 20:44:20 +0000 (20:44 +0000)
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

index e82353031215309b4735d426b334bfaca915456c..320694767715a14016c239953a0d144b68cf55bd 100644 (file)
@@ -300,6 +300,8 @@ function olsr.write(self, section, value)
        -- Write new nameservice settings
        uci:section("olsrd", "LoadPlugin", nil, {
                library     = "olsrd_nameservice.so.0.3",
+               suffix      = ".olsr",
+               hosts_file  = "/var/etc/hosts.olsr",
                latlon_file = "/var/run/latlon.js",
                lat         = latval and string.format("%.15f", latval) or "",
                lon         = lonval and string.format("%.15f", lonval) or ""