From: Florian Eckert Date: Fri, 9 Nov 2018 10:03:36 +0000 (+0100) Subject: luci-mod-system: add user defined interface to netdev trigger X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27bf7c2876ddd2a3c5fe5ac6e5c4cf03db24d7e3;p=oweals%2Fluci.git luci-mod-system: add user defined interface to netdev trigger Give the user the possibility to define and interface for the netdev trigger which is not available at the moment. This is usefull if a interface is not presented on configuration time. Signed-off-by: Florian Eckert --- diff --git a/modules/luci-mod-system/luasrc/model/cbi/admin_system/leds.lua b/modules/luci-mod-system/luasrc/model/cbi/admin_system/leds.lua index 2ea044e16..8ae38c0db 100644 --- a/modules/luci-mod-system/luasrc/model/cbi/admin_system/leds.lua +++ b/modules/luci-mod-system/luasrc/model/cbi/admin_system/leds.lua @@ -55,7 +55,7 @@ delayoff = s:option(Value, "delayoff", translate ("Off-State Delay")) delayoff:depends("trigger", "timer") -dev = s:option(ListValue, "_net_dev", translate("Device")) +dev = s:option(Value, "_net_dev", translate("Device")) dev.rmempty = true dev:value("") dev:depends("trigger", "netdev")