index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2021-01-25 10:31:02 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2021-01-25 10:31:02 +0100 |
commit | 68adb3108f8111b1be434bf63c03562d72bbbe6f (patch) | |
tree | c0d0f7c3f86bbb560184f7565982b68387797aed /archinstall/lib/hardware.py | |
parent | 5c696c4bc1f0d0e3abae105616fe783b85d6771a (diff) |
-rw-r--r-- | archinstall/lib/hardware.py | 10 |
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py new file mode 100644 index 00000000..c9483919 --- /dev/null +++ b/archinstall/lib/hardware.py @@ -0,0 +1,10 @@ +import os +from .networking import list_interfaces, enrichIfaceTypes + +def hasWifi(): + if 'WIRELESS' in enrichIfaceTypes(list_interfaces().values()).values(): + return True + return False + +def hasUEFI(): + return os.path.isdir('/sys/firmware/efi')
\ No newline at end of file |