Merge pull request #732 from LER0ever/Hackintosh

Model: Add support for Hackintosh
This commit is contained in:
Andrew Titmuss 2017-05-27 16:11:22 +10:00 committed by GitHub
commit b5e69b2d40

View file

@ -242,7 +242,13 @@ 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" ;;