summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-samba/luasrc/controller/samba.lua
blob: e239a8264f7b57d8ea6cb3dd02196e3df46f39c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
-- Licensed to the public under the Apache License 2.0.

module("luci.controller.samba", package.seeall)

function index()
	if not nixio.fs.access("/etc/config/samba") then
		return
	end

	local page

	page = entry({"admin", "services", "samba"}, cbi("samba"), _("Network Shares"))
	page.dependent = true
end