added hasIntelCPU

This commit is contained in:
advaithm 2021-04-07 07:55:46 +05:30
parent 5c83682efd
commit 86b4a5dc12
1 changed files with 4 additions and 0 deletions

View File

@ -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')