diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-02-10 14:58:44 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-02-10 14:58:44 +0000 |
commit | 6aa6b3b7ebae9f295c06d1fa859c1cf9bf2e979b (patch) | |
tree | 582c98df3c203e945ac882f346150743303c1031 /applications/luci-olsr-services/luasrc/controller | |
parent | 3a53e9425a11803408bb2c160fec025bf445b6d8 (diff) |
applications/luci-olsr-services: Move services away from mod-freifunk and make it seperate app instead.
Diffstat (limited to 'applications/luci-olsr-services/luasrc/controller')
-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 + |