Merge pull request #737 from LER0ever/master

Model: Add support for Hackintosh
This commit is contained in:
Dylan Araps 2017-05-31 22:39:00 +10:00 committed by GitHub
commit 56fa0a566e
1 changed files with 8 additions and 1 deletions

View File

@ -242,7 +242,14 @@ get_model() {
fi
;;
"Mac OS X") model="$(sysctl -n hw.model)" ;;
"Mac OS X")
if [[ "$(kextstat | grep "FakeSMC")" != "" ]]; then
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else
model="$(sysctl -n hw.model)"
fi
;;
"iPhone OS")
case "$machine_arch" in
"iPad1,1") model="iPad" ;;