index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | advaithm <advaith.madhukar@gmail.com> | 2021-03-12 11:57:02 +0530 |
---|---|---|
committer | advaithm <advaith.madhukar@gmail.com> | 2021-03-12 11:57:02 +0530 |
commit | 94456bf8ba692fb33c819d416636b34d9b14f7af (patch) | |
tree | b5d315d88718f57ade44ce08ad3126bc3e7f340d /archinstall/lib/hardware.py | |
parent | 43a0134f2e59dd34252195ff4d5bae4ebaaa6117 (diff) |
-rw-r--r-- | archinstall/lib/hardware.py | 7 |
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py index 93eb560f..3586ad09 100644 --- a/archinstall/lib/hardware.py +++ b/archinstall/lib/hardware.py @@ -1,4 +1,4 @@ -import os +import os, subprocess from .general import sys_command from .networking import list_interfaces, enrichIfaceTypes @@ -7,6 +7,11 @@ def hasWifi(): return True return False +def hasAMDCPU(): + if subprocess.check_output("lscpu | grep AMD", shell=True).strip().decode(): + return True + return False + def hasUEFI(): return os.path.isdir('/sys/firmware/efi') |