Merge pull request #1078 from nikitenich/master

Improve Hackintosh detection
This commit is contained in:
M. Herdiansyah 2018-09-02 23:43:17 +07:00 committed by GitHub
commit 382a1d2651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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