diff options
author | Andy Walsh <andy.walsh44+github@gmail.com> | 2018-07-22 17:04:40 +0200 |
---|---|---|
committer | Andy Walsh <andy.walsh44+github@gmail.com> | 2018-07-24 13:18:25 +0200 |
commit | 5c5dc024415a4086a4563131dfcec1643ba580cd (patch) | |
tree | 12f1786d921b5657a99e719372798501262b7205 /applications/luci-app-samba4/luasrc/controller | |
parent | a8a5b2feb23f0b3662f03d9fa71f211ab30fe6d9 (diff) |
luci-app-samba4: add new application
* updated version for the samba4 package
Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
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 |