applications/luci-olsr-services: Move services away from mod-freifunk and make it...
[project/luci.git] / applications / luci-olsr-services / luasrc / controller / services.lua
1 module "luci.controller.services"
2
3 function index()
4         local uci = require "luci.model.uci".cursor()
5         local i18n = luci.i18n.translate
6
7         uci:foreach("olsrd", "LoadPlugin", function(s)
8                 if s.library == "olsrd_nameservice.so.0.3" then
9                         has_serv = true
10                 end
11         end)
12
13         if has_serv then
14                 entry({"freifunk", "services"}, template("freifunk-services/services"), i18n("Services"), 60)
15         end
16 end
17