module("luci.controller.olsr", package.seeall)
function index()
- if not luci.fs.access("/etc/config/olsrd") then
+ if not nixio.fs.access("/etc/config/olsrd") then
return
end
local page = node("admin", "status", "olsr", "routes")
page.target = call("action_routes")
- page.title = i18n("olsr_routes", "Routen")
+ page.title = i18n("Routen")
page.order = 10
local page = node("admin", "status", "olsr", "topology")
page.target = call("action_topology")
- page.title = i18n("olsr_topology", "Topologie")
+ page.title = i18n("Topologie")
page.order = 20
local page = node("admin", "status", "olsr", "hna")
local rawdata = luci.sys.httpget("http://127.0.0.1:2006/"..otable)
if #rawdata == 0 then
- if luci.fs.access("/proc/net/ipv6_route", "r") then
+ if nixio.fs.access("/proc/net/ipv6_route", "r") then
rawdata = luci.sys.httpget("http://[::1]:2006/"..otable)
if #rawdata == 0 then
return nil