applications, modules: remove i18n handling from controller modules as it moved to...
[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
6 uci:foreach("olsrd", "LoadPlugin", function(s)
7 if s.library == "olsrd_nameservice.so.0.3" then
8 has_serv = true
9 end
10 end)
11
12 if has_serv then
13 entry({"freifunk", "services"}, template("freifunk-services/services"), _("Services"), 60)
14 end
15 end
16