Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-07 07:55:46 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-07 07:55:46 +0530
commit86b4a5dc12908b27896e385bb0a51a69551e9482 (patch)
tree4d363765792447e3d319a4b3a8f5c23ccb5f9d20 /archinstall/lib
parent5c83682efdee2c74de0f709fb8229e8257854912 (diff)
added hasIntelCPU
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/hardware.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index 3422a793..687b4a74 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -9,6 +9,10 @@ def hasAMDCPU()->bool:
if subprocess.check_output("lscpu | grep AMD", shell=True).strip().decode():
return True
return False
+def hasIntelCPU()->bool:
+ if subprocess.check_output("lscpu | grep Intel", shell=True).strip().decode():
+ return True
+ return False
def hasUEFI()->bool:
return os.path.isdir('/sys/firmware/efi')