index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Richard Neumann <mail@richard-neumann.de> | 2021-04-01 20:31:29 +0200 |
---|---|---|
committer | Richard Neumann <mail@richard-neumann.de> | 2021-04-01 20:31:29 +0200 |
commit | 1d54a625f489d3f6f25e84df8e68e6f66a64a857 (patch) | |
tree | f4391238e47283d42a57a96854aecf3efc56828f | |
parent | 2c90f02b6b26cc489e90f7536fe8931a4b2b9195 (diff) |
-rw-r--r-- | archinstall/lib/hardware.py | 18 |
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py index 93eb560f..5828fd09 100644 --- a/archinstall/lib/hardware.py +++ b/archinstall/lib/hardware.py @@ -3,9 +3,7 @@ from .general import sys_command from .networking import list_interfaces, enrichIfaceTypes def hasWifi(): - if 'WIRELESS' in enrichIfaceTypes(list_interfaces().values()).values(): - return True - return False + return 'WIRELESS' in enrichIfaceTypes(list_interfaces().values()).values() def hasUEFI(): return os.path.isdir('/sys/firmware/efi') @@ -19,18 +17,12 @@ def graphicsDevices(): return cards def hasNvidiaGraphics(): - if [x for x in graphicsDevices() if 'nvidia' in x]: - return True - return False + return any('nvidia' in x for x in graphicsDevices()) def hasAmdGraphics(): - if [x for x in graphicsDevices() if 'amd' in x]: - return True - return False + return any('amd' in x for x in graphicsDevices()) def hasIntelGraphics(): - if [x for x in graphicsDevices() if 'intel' in x]: - return True - return False + return any('intel' in x for x in graphicsDevices()) -# TODO: Add more identifiers
\ No newline at end of file +# TODO: Add more identifiers |