Improve Hackintosh detection

There is a new SMC emulator https://github.com/acidanthera/VirtualSMC
This commit is contained in:
nikitenich
2018-08-25 14:00:52 +03:00
committed by GitHub
parent 4d129b50c1
commit 3272dce4ed

View File

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