Add recognition for Hackintosh VMs

This commit is contained in:
Alyx Ferrari 2021-12-21 00:05:42 -05:00
parent ccd5d9f526
commit 50516dcf67

View file

@ -1257,7 +1257,7 @@ get_model() {
;;
"Mac OS X"|"macOS")
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC") != "" ]]; then
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else
model=$(sysctl -n hw.model)