← back to Exo
add special case for USB adapter over ethernet
6d09b4ae42c27986050e5efa7fa23220859be1e8 · 2024-12-07 14:45:07 +0000 · Alex Cheema
Files touched
Diff
commit 6d09b4ae42c27986050e5efa7fa23220859be1e8
Author: Alex Cheema <alexcheema123@gmail.com>
Date: Sat Dec 7 14:45:07 2024 +0000
add special case for USB adapter over ethernet
---
exo/helpers.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/exo/helpers.py b/exo/helpers.py
index 824ee85e..0ddbee8b 100644
--- a/exo/helpers.py
+++ b/exo/helpers.py
@@ -262,6 +262,11 @@ async def get_macos_interface_type(ifname: str) -> Optional[Tuple[int, str]]:
# Ethernet adapters
if 'Ethernet' in hw_port:
return (4, "Ethernet")
+ if 'USB' in hw_port:
+ if 'en' in ifname:
+ return (4, "Ethernet (USB Adapter)")
+ else:
+ return (4, "USB")
# WiFi
if hw_port == 'Wi-Fi':
← 89815b16 Applied patch idea from https://github.com/exo-explore/exo/i
·
back to Exo
·
topo fix only take your own as source of truth 50e4a966 →