index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-02 09:01:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 09:01:07 +0000 |
commit | 0488c93a507fcb9e687b083ed8f11622d43ca9c2 (patch) | |
tree | 542df9eddbc56591e3fd95df2531d4f1f7cc5f17 /archinstall | |
parent | 5f9966b5c1c4ead5cb98b96ab2591b5b1d108260 (diff) | |
parent | c0cfa7ae929a55cf2ea4458f758e9196242a3cc9 (diff) |
-rw-r--r-- | archinstall/lib/hardware.py | 18 | ||||
-rw-r--r-- | archinstall/lib/systemd.py | 16 |
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 diff --git a/archinstall/lib/systemd.py b/archinstall/lib/systemd.py index edd75098..f2b7c9b3 100644 --- a/archinstall/lib/systemd.py +++ b/archinstall/lib/systemd.py @@ -26,15 +26,11 @@ class Ini(): return result class Systemd(Ini): - def __init__(self, *args, **kwargs): - """ - Placeholder class to do systemd specific setups. - """ - super(Systemd, self).__init__(*args, **kwargs) + """ + Placeholder class to do systemd specific setups. + """ class Networkd(Systemd): - def __init__(self, *args, **kwargs): - """ - Placeholder class to do systemd-network specific setups. - """ - super(Networkd, self).__init__(*args, **kwargs)
\ No newline at end of file + """ + Placeholder class to do systemd-network specific setups. + """ |