diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-02 23:47:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-02-02 23:47:54 +0000 |
commit | 617e93a623f6961c6e43515db2bf6dc3946facb1 (patch) | |
tree | 67cc11f9cd4b984e526757db65fac56461727131 | |
parent | 8ab48be60630037fafeb21eb2f82147e0f45e511 (diff) |
modules/admin-full: fix default state option on led control page
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_system/leds.lua | 4 |
1 files changed, 2 insertions, 2 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 ad2a5bd98..b48ade5d3 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/leds.lua @@ -46,7 +46,7 @@ for k, v in ipairs(leds) do sysfs:value(v) end -s:option(Flag, "default", translate("Default state")).rmempty = true +s:option(Flag, "default", translate("Default state")).rmempty = false trigger = s:option(ListValue, "trigger", translate("Trigger")) @@ -54,7 +54,7 @@ trigger = s:option(ListValue, "trigger", translate("Trigger")) local triggers = fs.readfile(sysfs_path .. leds[1] .. "/trigger") for t in triggers:gmatch("[%w-]+") do trigger:value(t, translate(t:gsub("-", ""))) -end +end delayon = s:option(Value, "delayon", translate ("On-State Delay")) |