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