index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-06-01 23:56:15 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-06-01 23:56:15 +0200 |
commit | 0901723ff483867558fe49c892c0c825942e1ac3 (patch) | |
tree | 52320b67f6b236188974c34c9b5593304b73a927 /archinstall/lib/networking.py | |
parent | 32dce852570c3e489f08549e8c0c453ce4184afe (diff) |
-rw-r--r-- | archinstall/lib/networking.py | 2 |
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py index 0643c9cf..ac889528 100644 --- a/archinstall/lib/networking.py +++ b/archinstall/lib/networking.py @@ -1,4 +1,3 @@ -import fcntl import logging import os import socket @@ -12,6 +11,7 @@ from .storage import storage def get_hw_addr(ifname): + import fcntl s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', bytes(ifname, 'utf-8')[:15])) return ':'.join('%02x' % b for b in info[18:24]) |