samba.lua 413 B

12345678910111213141516
  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. module("luci.controller.samba", package.seeall)
  5. function index()
  6. if not nixio.fs.access("/etc/config/samba") then
  7. return
  8. end
  9. local page
  10. page = entry({"admin", "services", "samba"}, cbi("samba"), _("Network Shares"))
  11. page.dependent = true
  12. end