diff options
author | Shun Li <riverscn@gmail.com> | 2019-11-30 20:38:56 +0800 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2019-12-03 20:59:55 +0100 |
commit | 796301a02f95739383262051ad1a551c153a680e (patch) | |
tree | 3ea8540f414476cdd2d8372dcf013b9d664f3e11 /applications/luci-app-omcproxy/luasrc/controller | |
parent | 3fd4ec02157f779d6ecb5e3d3a372ffc2e2b2f6c (diff) |
add luci support for omcproxy
Signed-off-by: Shun Li <riverscn@gmail.com>
Diffstat (limited to 'applications/luci-app-omcproxy/luasrc/controller')
-rw-r--r-- | applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua b/applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua new file mode 100644 index 0000000000..6842a20971 --- /dev/null +++ b/applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua @@ -0,0 +1,13 @@ +-- Copyright 2019 Shun Li <riverscn@gmail.com> +-- This is free software, licensed under the Apache License, Version 2.0 + +module("luci.controller.omcproxy", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/omcproxy") then + return + end + + entry({"admin", "services", "omcproxy"}, view("omcproxy"), _("omcproxy")).dependent = true + +end
\ No newline at end of file |