From 5c5dc024415a4086a4563131dfcec1643ba580cd Mon Sep 17 00:00:00 2001 From: Andy Walsh Date: Sun, 22 Jul 2018 17:04:40 +0200 Subject: luci-app-samba4: add new application * updated version for the samba4 package Signed-off-by: Andy Walsh --- applications/luci-app-samba4/luasrc/controller/samba4.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 applications/luci-app-samba4/luasrc/controller/samba4.lua (limited to 'applications/luci-app-samba4/luasrc/controller') 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 -- cgit v1.2.3