diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-07-26 20:17:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 20:17:40 +0200 |
commit | 2519d7ee8b28936f7ff31386e3c8e08c97017f26 (patch) | |
tree | 4b3b8f3169ec0405002df4ee9972aa74b3233065 /applications/luci-app-samba4/luasrc/controller | |
parent | 8a1bc1814f1cb654e49c1b6352378b1a7e58100b (diff) | |
parent | 5c5dc024415a4086a4563131dfcec1643ba580cd (diff) |
Merge pull request #1985 from Andy2244/master
luci-app-samba4: add new application
Diffstat (limited to 'applications/luci-app-samba4/luasrc/controller')
-rw-r--r-- | applications/luci-app-samba4/luasrc/controller/samba4.lua | 14 |
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 0000000000..8ad0e52e36 --- /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 |