summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cifsd/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-10-16 21:32:03 +0200
committerGitHub <noreply@github.com>2019-10-16 21:32:03 +0200
commitcbd6b5e5517fb3286e31a367fd9aaeb29410882e (patch)
tree5a26058ff25dc1e91ed3734f376509292a1c8133 /applications/luci-app-cifsd/luasrc
parent3d11af11a72740aefee26c299de379a2780d2f79 (diff)
parent43f6ca451766a4a32587a85a38cb45e6479fb92e (diff)
Merge pull request #3125 from ysc3839/cifsd
[RFC] luci-app-cifsd: add new package
Diffstat (limited to 'applications/luci-app-cifsd/luasrc')
-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