Unverified Commit 3272dce4 authored by nikitenich's avatar nikitenich Committed by GitHub

Improve Hackintosh detection

There is a new SMC emulator https://github.com/acidanthera/VirtualSMC
parent 4d129b50
...@@ -1039,7 +1039,7 @@ get_model() { ...@@ -1039,7 +1039,7 @@ get_model() {
;; ;;
"Mac OS X") "Mac OS X")
if [[ "$(kextstat | grep -F "FakeSMC")" != "" ]]; then if [[ "$(kextstat | grep -E "FakeSMC|VirtualSMC")" != "" ]]; then
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))" model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else else
model="$(sysctl -n hw.model)" model="$(sysctl -n hw.model)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment