Use luci.fs.access instead of luci.fs.isfile where applicable
[project/luci.git] / applications / luci-qos / luasrc / controller / qos.lua
index faddbac..970dd3d 100644 (file)
@@ -14,9 +14,16 @@ $Id$
 module("luci.controller.qos", package.seeall)
 
 function index()
-       if not luci.fs.isfile("/etc/config/qos") then
+       if not luci.fs.access("/etc/config/qos") then
                return
        end
        
-       entry({"admin", "network", "qos"}, cbi("qos/qos"), "Quality of Service")
+       local page = entry({"admin", "network", "qos"}, cbi("qos/qos"), "QoS")
+       page.i18n = "qos"
+       page.dependent = true
+       
+       
+       local page = entry({"mini", "network", "qos"}, cbi("qos/qosmini", {autoapply=true}), "QoS")
+       page.i18n = "qos"
+       page.dependent = true
 end
\ No newline at end of file