luci-mod-admin-full: led config: add support for Switch Port Mask
authorMartin Schiller <ms@dev.tdt.de>
Thu, 21 Dec 2017 14:04:00 +0000 (15:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 9 Jan 2018 07:11:23 +0000 (08:11 +0100)
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua

index 74e2f1a19da8a83bba06e84c823a054f071460e4..2ea044e16a9f27759bbffccd67891c3b2efc8d60 100644 (file)
@@ -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