From 43f6ca451766a4a32587a85a38cb45e6479fb92e Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Thu, 17 Oct 2019 00:38:49 +0800 Subject: luci-app-cifsd: add new package Signed-off-by: Richard Yu --- applications/luci-app-cifsd/luasrc/controller/cifsd.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 applications/luci-app-cifsd/luasrc/controller/cifsd.lua (limited to 'applications/luci-app-cifsd/luasrc/controller') diff --git a/applications/luci-app-cifsd/luasrc/controller/cifsd.lua b/applications/luci-app-cifsd/luasrc/controller/cifsd.lua new file mode 100644 index 0000000000..de3f9b0f92 --- /dev/null +++ b/applications/luci-app-cifsd/luasrc/controller/cifsd.lua @@ -0,0 +1,11 @@ +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.cifsd", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/cifsd") then + return + end + + entry({"admin", "services", "cifsd"}, view("cifsd"), _("Network Shares")).dependent = true +end -- cgit v1.2.3