summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-cifsd/luasrc/controller/cifsd.lua
diff options
context:
space:
mode:
authorRichard Yu <yurichard3839@gmail.com>2019-10-17 00:38:49 +0800
committerRichard Yu <yurichard3839@gmail.com>2019-10-17 00:38:49 +0800
commit43f6ca451766a4a32587a85a38cb45e6479fb92e (patch)
treeb08b96082123553c4f1c8c42d631f7584c5521cc /applications/luci-app-cifsd/luasrc/controller/cifsd.lua
parent355223ecdd9f8b7e19f6d8bf5d726ad94f380677 (diff)
luci-app-cifsd: add new package
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
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 0000000000..de3f9b0f92
--- /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