luci-app-cpufreq: add ACL dependency annotations
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
parent
f75476b5ea
commit
371eb31ee0
@ -5,6 +5,9 @@ function index()
|
||||
if not nixio.fs.access("/etc/config/cpufreq") then
|
||||
return
|
||||
end
|
||||
|
||||
entry({"admin", "system", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900).dependent=false
|
||||
|
||||
local page
|
||||
page = entry({"admin", "system", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900)
|
||||
page.dependent = false
|
||||
page.acl_depends = { "luci-app-cpufreq" }
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user