sqm-controller.lua 553 B

1234567891011121314151617181920212223242526
  1. --[[
  2. LuCI - Lua Configuration Interface
  3. Copyright 2008 Steven Barth <steven@midlink.org>
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. $Id$
  9. ]]--
  10. module("luci.controller.sqm", package.seeall)
  11. function index()
  12. if not nixio.fs.access("/etc/config/sqm") then
  13. return
  14. end
  15. local page
  16. page = entry({"admin", "network", "sqm"}, cbi("sqm"), _("SQM QoS"))
  17. page.dependent = true
  18. end