From: Aleksander Jan Bajkowski Date: Sat, 15 Feb 2025 21:47:13 +0000 (+0100) Subject: luci-mod-system: add speed and duplex triggers X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3e45fc644f7a4a172d75015d65ddde4dc55a7453;p=openwrt-luci.git luci-mod-system: add speed and duplex triggers Many devices have LEDs to signal a specific link speed. They are incorrectly displayed in LUCI when they are defined. This commit adds the missing speed and duplex triggers. Signed-off-by: Aleksander Jan Bajkowski --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js index 382705203b..41caaa2aa9 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js @@ -22,6 +22,14 @@ return baseclass.extend({ o.modalonly = true; o.depends('trigger', 'netdev'); o.value('link', _('Link On')); + o.value('link_10', _('Link 10M On')); + o.value('link_100', _('Link 100M On')); + o.value('link_1000', _('Link 1G On')); + o.value('link_2500', _('Link 2.5G On')); + o.value('link_5000', _('Link 5G On')); + o.value('link_10000', _('Link 10G On')); + o.value('half_duplex', _('Half Duplex')); + o.value('full_duplex', _('Full Duplex')); o.value('tx', _('Transmit')); o.value('rx', _('Receive')); }