summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua')
-rw-r--r--applications/luci-app-omcproxy/luasrc/controller/omcproxy.lua13
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