2
0

services.lua 351 B

12345678910111213141516
  1. module "luci.controller.services"
  2. function index()
  3. local uci = require "luci.model.uci".cursor()
  4. uci:foreach("olsrd", "LoadPlugin", function(s)
  5. if s.library == "olsrd_nameservice.so.0.3" then
  6. has_serv = true
  7. end
  8. end)
  9. if has_serv then
  10. entry({"freifunk", "services"}, template("freifunk-services/services"), _("Services"), 60)
  11. end
  12. end