summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-samba/luasrc/controller/samba.lua
blob: 397af6a823cbafc4a4917e0a6bf9cd610e70ebd8 (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 <jow@openwrt.org>
-- 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