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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)"