Commit b5e69b2d authored by Andrew Titmuss's avatar Andrew Titmuss Committed by GitHub

Merge pull request #732 from LER0ever/Hackintosh

Model: Add support for Hackintosh
parents 767cd93f 0f945f9b
...@@ -242,7 +242,13 @@ get_model() { ...@@ -242,7 +242,13 @@ get_model() {
fi 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") "iPhone OS")
case "$machine_arch" in case "$machine_arch" in
"iPad1,1") model="iPad" ;; "iPad1,1") model="iPad" ;;
......
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