index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan M. Taylor <dylan@dylanmtaylor.com> | 2021-05-15 22:47:14 -0400 |
---|---|---|
committer | Dylan Taylor <dylan@dylanmtaylor.com> | 2021-05-15 22:53:58 -0400 |
commit | 22fc18dc46cd605495175fc141029882b036ab4a (patch) | |
tree | 65db5468e6ad461d90a3b62dc55d52b28a2d1d32 /archinstall | |
parent | e3c8692bfa65d9b689bb50f9a4469989332adde4 (diff) |
-rw-r--r-- | archinstall/lib/networking.py | 8 |
diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py index b0c4b569..8a2f0edd 100644 --- a/archinstall/lib/networking.py +++ b/archinstall/lib/networking.py @@ -26,6 +26,14 @@ def list_interfaces(skip_loopback=True): return interfaces +def check_mirror_reachable(): + try: + check = SysCommand("pacman -Sy") + return check.exit_code == 0 + except: + return False + + def enrich_iface_types(interfaces: dict): result = {} for iface in interfaces: |