Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/networking.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index 7832cf07..7fb1de0a 100644
--- a/archinstall/lib/networking.py
+++ b/archinstall/lib/networking.py
@@ -18,3 +18,6 @@ def list_interfaces(skip_loopback=True):
mac = getHwAddr(iface).replace(':', '-').lower()
interfaces[mac] = iface
return interfaces
+
+def get_interface_from_mac(mac):
+ return list_interfaces().get(mac, None) \ No newline at end of file