diff options
Diffstat (limited to 'applications/luci-olsr-services/luasrc/controller/services.lua')
-rw-r--r-- | applications/luci-olsr-services/luasrc/controller/services.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/applications/luci-olsr-services/luasrc/controller/services.lua b/applications/luci-olsr-services/luasrc/controller/services.lua new file mode 100644 index 000000000..cc1a2f62e --- /dev/null +++ b/applications/luci-olsr-services/luasrc/controller/services.lua @@ -0,0 +1,17 @@ +module "luci.controller.services" + +function index() + local uci = require "luci.model.uci".cursor() + local i18n = luci.i18n.translate + + uci:foreach("olsrd", "LoadPlugin", function(s) + if s.library == "olsrd_nameservice.so.0.3" then + has_serv = true + end + end) + + if has_serv then + entry({"freifunk", "services"}, template("freifunk-services/services"), i18n("Services"), 60) + end +end + |