From: Jo-Philipp Wich Date: Wed, 2 Feb 2011 23:48:37 +0000 (+0000) Subject: luci-0.10: merge r6838 X-Git-Tag: 0.10.0~197 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f44d481aace29d87fb47fd8eda702bb0f95fcfce;p=oweals%2Fluci.git luci-0.10: merge r6838 --- 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"))