summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-07 11:46:13 +0000
committerSteven Barth <steven@midlink.org>2008-08-07 11:46:13 +0000
commit6e390b7691419655d0e5e05b3c342059f45364ac (patch)
tree2070b21bc0fc3cce34a756e5316eef557ee83520 /modules
parent6901e28cfc1c6e10394f27af346f5269b4918555 (diff)
modules/admin-full: Removed accidently remaining debug dummy stuff
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/leds.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua b/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua
index 0acb7479b..5074a7339 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua
@@ -15,7 +15,6 @@ m = Map("system", translate("leds"), translate("leds_desc"))
local sysfs_path = "/sys/class/leds/"
local leds = {}
-leds[1] = "moep"
if luci.fs.access(sysfs_path) then
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")
---local triggers = luci.fs.readfile(sysfs_path .. leds[1] .. "/trigger")
-triggers = "[none] netdev heartbeat default-on timer"
+local triggers = luci.fs.readfile(sysfs_path .. leds[1] .. "/trigger")
for t in triggers:gmatch("[%w-]+") do
trigger:value(t, translate("system_led_trigger_" .. t:gsub("-", "")))
end