summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-04-25 19:56:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-04-25 19:56:10 +0000
commit254c8d368ec37d76fe73f540be7af119b00acb1a (patch)
treed1427b61bc75898cbd3317f3143b565c3212cf1f /modules/admin-full/luasrc/model
parent542cc1da5bcdb1e77508c7847d18479e3c2b64b4 (diff)
modules/admin-full: revert accidental change in r7003
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/leds.lua4
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 ca964a815c..053a5debbf 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"))