summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cifsd/luasrc/controller/cifsd.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-cifsd/luasrc/controller/cifsd.lua')
-rw-r--r--applications/luci-app-cifsd/luasrc/controller/cifsd.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-cifsd/luasrc/controller/cifsd.lua b/applications/luci-app-cifsd/luasrc/controller/cifsd.lua
new file mode 100644
index 000000000..de3f9b0f9
--- /dev/null
+++ b/applications/luci-app-cifsd/luasrc/controller/cifsd.lua
@@ -0,0 +1,11 @@
+-- Licensed to the public under the Apache License 2.0.
+
+module("luci.controller.cifsd", package.seeall)
+
+function index()
+ if not nixio.fs.access("/etc/config/cifsd") then
+ return
+ end
+
+ entry({"admin", "services", "cifsd"}, view("cifsd"), _("Network Shares")).dependent = true
+end