modules/admin-full: Removed accidently remaining debug dummy stuff
authorSteven Barth <steven@midlink.org>
Thu, 7 Aug 2008 11:46:13 +0000 (11:46 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 7 Aug 2008 11:46:13 +0000 (11:46 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/leds.lua

index 0acb7479bda4541d2c190fa836f1f2b9ef6553b2..5074a73396570f6c0ee9b6fc079a2df302b367c1 100644 (file)
@@ -15,7 +15,6 @@ m = Map("system", translate("leds"), translate("leds_desc"))
 
 local sysfs_path = "/sys/class/leds/"
 local leds = {}
 
 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
 
 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")
 
 
 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 
 for t in triggers:gmatch("[%w-]+") do
        trigger:value(t, translate("system_led_trigger_" .. t:gsub("-", "")))
 end