c9eb9e5d115f575348f3944615d2d737d9b555e6
[project/luci.git] / applications / luci-qos / luasrc / controller / qos.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 module("luci.controller.qos", package.seeall)
16
17 function index()
18 if not nixio.fs.access("/etc/config/qos") then
19 return
20 end
21
22 local page
23
24 page = entry({"admin", "network", "qos"}, cbi("qos/qos"), _("QoS"))
25 page.i18n = "qos"
26 page.dependent = true
27
28 page = entry({"mini", "network", "qos"}, cbi("qos/qosmini", {autoapply=true}), _("QoS"))
29 page.i18n = "qos"
30 page.dependent = true
31 end