e239a8264f7b57d8ea6cb3dd02196e3df46f39c0
[project/luci.git] / applications / luci-app-samba / luasrc / controller / samba.lua
1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
3 -- Licensed to the public under the Apache License 2.0.
4
5 module("luci.controller.samba", package.seeall)
6
7 function index()
8         if not nixio.fs.access("/etc/config/samba") then
9                 return
10         end
11
12         local page
13
14         page = entry({"admin", "services", "samba"}, cbi("samba"), _("Network Shares"))
15         page.dependent = true
16 end