diff --git a/Rosetta2.sh b/Rosetta2.sh new file mode 100644 index 0000000..0df55b4 --- /dev/null +++ b/Rosetta2.sh @@ -0,0 +1,20 @@ +#!/bin/bash +arch=$(/usr/bin/arch) +if [ "$arch" == "arm64" ]; then + echo "Apple Silicon - Installing Rosetta" + echo "Apple Silicon - Installing Rosetta" >> ${deplog} + sleep 1 + /usr/sbin/softwareupdate --install-rosetta --agree-to-license + echo "Rosetta 2 Now Installed" >> ${deplog} + echo "Rosetta 2 Now Installed" + sleep 5 +elif [ "$arch" == "i386" ]; then + echo "Intel - Skipping Rosetta" >> ${deplog} + echo "Intel - Skipping Rosetta" + sleep 1 +else + echo "Unknown Architecture" >> ${deplog} + echo "Unknown Architecture" + sleep 1 +fi +exit 0