[chronojump] NetworksCheckDevices checks: eth*, en*, wl*
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] NetworksCheckDevices checks: eth*, en*, wl*
- Date: Wed, 29 Jan 2020 17:13:15 +0000 (UTC)
commit 268a39a043654a9fdeb508b482abd7fb07757cb6
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jan 29 18:12:04 2020 +0100
NetworksCheckDevices checks: eth*, en*, wl*
src/networks.cs | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/networks.cs b/src/networks.cs
index 60a04a8e..99f0b762 100644
--- a/src/networks.cs
+++ b/src/networks.cs
@@ -171,8 +171,14 @@ public class NetworksCheckDevices
DirectoryInfo pathDirInfo = new DirectoryInfo(path);
DirectoryInfo [] subdirs = pathDirInfo.GetDirectories();
+
+ /*
+ * check eth0, wlan*
+ * but note our computers have interface enp2s0, wlp3s0
+ * they are valid:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
+ */
foreach (DirectoryInfo dir in subdirs)
- if( ( dir.Name.StartsWith("eth") || dir.Name.StartsWith("wlan") ) &&
checkDevice(dir.Name))
+ if( ( dir.Name.StartsWith("eth") || dir.Name.StartsWith("en") ||
dir.Name.StartsWith("wl") ) && checkDevice(dir.Name))
devicesUp.Add(dir.Name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]