summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2017-12-21 15:04:00 +0100
committerJo-Philipp Wich <jo@mein.io>2018-01-09 08:11:23 +0100
commit673a8bd76f9e8d7508dcaf30c7f2f554d3c3ccaf (patch)
treedb0e575c54bb8e8daf5a31c3da116ae26bcd0edf /modules/luci-mod-admin-full
parent96f6a79eb2c3373797f50fc8b0fde45e95b01a62 (diff)
luci-mod-admin-full: led config: add support for Switch Port Mask
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Diffstat (limited to 'modules/luci-mod-admin-full')
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua3
1 files changed, 3 insertions, 0 deletions
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 74e2f1a19d..2ea044e16a 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