From 673a8bd76f9e8d7508dcaf30c7f2f554d3c3ccaf Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Thu, 21 Dec 2017 15:04:00 +0100 Subject: luci-mod-admin-full: led config: add support for Switch Port Mask Signed-off-by: Martin Schiller --- modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua index 74e2f1a19..2ea044e16 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua @@ -152,4 +152,7 @@ for p in nixio.fs.glob("/sys/bus/usb/devices/*/usb[0-9]*-port[0-9]*") do end end +port_mask = s:option(Value, "port_mask", translate ("Switch Port Mask")) +port_mask:depends("trigger", "switch0") + return m -- cgit v1.2.3