Add ethtool dependency for turris-diagnostics
Description
In case SFP module is plugged into the SFP slot, then turris-diagnostics fails to fetch info about SFP, due to missing ethtool
.
turris-diagnostics
requires ethtool
for its network module. See: https://gitlab.nic.cz/turris/diagnostics/-/blob/master/modules/40_network.module#L58-62
How to reproduce
On Turris OS 6.2.4, Turris Omnia, clean install from medkit. Turris SFP module is plugged in the SFP slot.
Run the network diagnostics
$ turris-diagnostics network
Expected behavior
At least some output from ethtool should appear.
$ turris-diagnostics network
############## network
[...]
== SFP (eth2) ==
Identifier : 0x03 (SFP)
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector : 0x22 (RJ45)
[...]
************** network
Actual behavior
ethtool
is not found and we don't get any info about SFP.
$ turris-diagnostics network
############## network
[...]
== SFP (eth2) ==
modules/module.sh: line 61: ethtool: not found
************** network
Proposed solution
Add ethtool
dependency for turris-diagnostics
and include ethtool
in base TOS image/medkit.