Guard ethtool usage.

This commit is contained in:
Turann_
2026-03-15 22:07:04 +03:00
parent e6fc9dc700
commit a5af3e83d6
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -779,10 +779,13 @@ Singleton {
root.activeEthernetDetails = details;
root.activeEthernetDetailsTimestamp = Date.now();
root.ethernetDetailsLoading = false;
} else {
} else if (ProgramCheckerService.ethtoolAvailable) {
// Fallback to ethtool if sysfs unreadable or invalid
ethernetEthtoolProcess.ifname = ethernetSysfsSpeedProcess.ifname;
ethernetEthtoolProcess.running = true;
} else {
root.activeEthernetDetailsTimestamp = Date.now();
root.ethernetDetailsLoading = false;
}
}
}