summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-ffwizard-leipzig/luasrc/model/cbi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-27 20:44:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-27 20:44:20 +0000
commitf20034cd8251ec676d24365c6d1eb1bcfd440028 (patch)
treead488c7fe9641e8ad31ad3d7109bf983f7599fae /applications/luci-ffwizard-leipzig/luasrc/model/cbi
parentec396f390728b5097f5bd4e363406fe71d5491d0 (diff)
applications/luci-ffwizard-leipzig: setup olsr hosts file after recreating nameservice config
Diffstat (limited to 'applications/luci-ffwizard-leipzig/luasrc/model/cbi')
-rw-r--r--applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index e82353031..320694767 100644
--- a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@ -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 ""