1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 19:11:51 +00:00
openmptcprouter-feeds/luci-app-omr-quota/luasrc/controller/quota.lua
2018-03-28 10:59:15 +02:00

13 lines
373 B
Lua

-- Copyright 2018 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.quota", package.seeall)
function index()
if not nixio.fs.access("/etc/config/omr-quota") then
return
end
local page
page = entry({"admin", "network", "quota"}, cbi("quota/quota"), _("Quota"))
page.dependent = true
end