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 <olek2@wp.pl>
This commit is contained in:
Aleksander Jan Bajkowski
2025-02-15 22:47:13 +01:00
committed by Paul Donald
parent 3bac133986
commit 3e45fc644f

View File

@@ -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'));
}