modules/admin-full: Removed accidently remaining debug dummy stuff
This commit is contained in:
parent
6901e28cfc
commit
6e390b7691
1 changed files with 1 additions and 3 deletions
|
@ -15,7 +15,6 @@ m = Map("system", translate("leds"), translate("leds_desc"))
|
||||||
|
|
||||||
local sysfs_path = "/sys/class/leds/"
|
local sysfs_path = "/sys/class/leds/"
|
||||||
local leds = {}
|
local leds = {}
|
||||||
leds[1] = "moep"
|
|
||||||
|
|
||||||
if luci.fs.access(sysfs_path) then
|
if luci.fs.access(sysfs_path) then
|
||||||
for k, v in pairs(luci.fs.dir(sysfs_path)) do
|
for k, v in pairs(luci.fs.dir(sysfs_path)) do
|
||||||
|
@ -53,8 +52,7 @@ s:option(Flag, "default").rmempty = true
|
||||||
|
|
||||||
trigger = s:option(ListValue, "trigger")
|
trigger = s:option(ListValue, "trigger")
|
||||||
|
|
||||||
--local triggers = luci.fs.readfile(sysfs_path .. leds[1] .. "/trigger")
|
local triggers = luci.fs.readfile(sysfs_path .. leds[1] .. "/trigger")
|
||||||
triggers = "[none] netdev heartbeat default-on timer"
|
|
||||||
for t in triggers:gmatch("[%w-]+") do
|
for t in triggers:gmatch("[%w-]+") do
|
||||||
trigger:value(t, translate("system_led_trigger_" .. t:gsub("-", "")))
|
trigger:value(t, translate("system_led_trigger_" .. t:gsub("-", "")))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue