build: i18n-add-language.sh: more lenient code validation
[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 <jow@openwrt.org>
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