Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/networking.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-10 13:31:27 +0200
committerGitHub <noreply@github.com>2021-06-10 13:31:27 +0200
commit5ae3d11ab2b248181ec403641d376f3467028ab8 (patch)
treeeeb9a763859bca8dc27a67ba96a4e289bb1a17ae /archinstall/lib/networking.py
parentdc10725bf93e4259fb2be030221cbe3a0527f85b (diff)
parent434ebb3419f6d614c753729498337abb738481be (diff)
Merge pull request #537 from archlinux/torxed-fix-517
Introduces the use of HTTP mirrors additionally
Diffstat (limited to 'archinstall/lib/networking.py')
-rw-r--r--archinstall/lib/networking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py
index 49970ec4..64bcb58e 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])