diff --git a/README.md b/README.md index 766617f..644e12f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# VBoxMacSetup v1.1 +# VBoxMacSetup v1.2 **maintained by:** hkdb \
### Bash script to quickly prepare your MacOS High Sierra Virtual HD with full screen resolution. @@ -24,8 +24,16 @@ VBoxManage setextradata "MacOS" "VBoxInternal2/EfiGraphicsResolution" "1920x1080 ``` +It also executes the following if the host is not on an Intel CPU: +``` +VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K" +``` + + ## RELEASE +v1.2 - Added support for non-Intel hosts based on @jld3103 + v1.1 - Merged PR Fix, Added Version Tracking, and Fixed README v1.0 - Initial Release @@ -38,12 +46,12 @@ As of v1.1, I created a develop branch for development or pull requests if it's ## DEPENDENCIES - Bash -- Virtualbox 5.x +- Virtualbox 5.x and 6.x - MacOS High Sierra Final ## TESTED ON -- Ubuntu Linux 18.04 +- Ubuntu Linux 18.04, 18.10, 19.04 ## INSTALLATION diff --git a/setup.sh b/setup.sh index aaf18e2..59c03d4 100755 --- a/setup.sh +++ b/setup.sh @@ -8,7 +8,7 @@ # # ##################################### -VERSION="v1.1" +VERSION="v1.2" POSITIONAL=() @@ -41,7 +41,14 @@ done set -- "${POSITIONAL[@]}" # restore positional parameters VBoxManage modifyvm "${VM}" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff -VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K" + +# Check CPU Type +INTEL=$(lscpu |grep GenuineIntel) + +# Execute this line if it's a non-intel CPU +if [ -z "$INTEL" ]; then + VBoxManage modifyvm "${VM}" --cpu-profile "Intel Core i7-6700K" +fi VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" VBoxManage setextradata "${VM}" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"