summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-smbd/luasrc
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-01-04 11:25:55 +0200
committerGitHub <noreply@github.com>2020-01-04 11:25:55 +0200
commit4c4d6e2bb2297a56ad1cad37d5b82a3b6e10211b (patch)
tree294af455010f3a1ea6faedfcb1c5540417e3856c /applications/luci-app-smbd/luasrc
parentd844caf13787a66a5deac438d9f28746b79136ff (diff)
parent5912474500429ade30c2d38db077933b375e40ff (diff)
Merge pull request #3451 from Andy2244/luci-app-smbd-rename
luci-app-smbd: rename change cifsd->smbd
Diffstat (limited to 'applications/luci-app-smbd/luasrc')
-rw-r--r--applications/luci-app-smbd/luasrc/controller/smbd.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-smbd/luasrc/controller/smbd.lua b/applications/luci-app-smbd/luasrc/controller/smbd.lua
new file mode 100644
index 0000000000..2bf1b15780
--- /dev/null
+++ b/applications/luci-app-smbd/luasrc/controller/smbd.lua
@@ -0,0 +1,11 @@
+-- Licensed to the public under the Apache License 2.0.
+
+module("luci.controller.smbd", package.seeall)
+
+function index()
+ if not nixio.fs.access("/etc/config/smbd") then
+ return
+ end
+
+ entry({"admin", "services", "smbd"}, view("smbd"), _("Network Shares")).dependent = true
+end