diff options
Diffstat (limited to 'applications/luci-app-smbd/luasrc')
-rw-r--r-- | applications/luci-app-smbd/luasrc/controller/smbd.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-smbd/luasrc/controller/smbd.lua b/applications/luci-app-smbd/luasrc/controller/smbd.lua new file mode 100644 index 0000000000..2bf1b15780 --- /dev/null +++ b/applications/luci-app-smbd/luasrc/controller/smbd.lua @@ -0,0 +1,11 @@ +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.smbd", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/smbd") then + return + end + + entry({"admin", "services", "smbd"}, view("smbd"), _("Network Shares")).dependent = true +end |