mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Guard ethtool usage.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user