luci-mod-system: add user defined interface to netdev trigger 2274/head
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 9 Nov 2018 10:03:36 +0000 (11:03 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 12 Nov 2018 14:34:54 +0000 (15:34 +0100)
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 <fe@dev.tdt.de>
modules/luci-mod-system/luasrc/model/cbi/admin_system/leds.lua

index 2ea044e16a9f27759bbffccd67891c3b2efc8d60..8ae38c0db446e5398195cf3ce368d17e7b11070f 100644 (file)
@@ -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")