Commit 11c56aa
committed
OpenWrt agent: get interface speed from sysfs if ethtool is missing
ethtool is not default on most OpenWrt targets and these devices are
typically found in networking environments, so missing interface speed
is not the desired behavior.
Adapt fallback from Linux agent and extract speed from sysfs if ethtool
is not available.1 parent 8dec4f6 commit 11c56aa
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
| |||
0 commit comments