From 520947ef50fbffbfc054e6a4981f915ea9096c5f Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:13:05 +0100 Subject: [PATCH] Add files via upload --- Rosetta2-JAMF.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Rosetta2-JAMF.sh diff --git a/Rosetta2-JAMF.sh b/Rosetta2-JAMF.sh new file mode 100644 index 0000000..185faa8 --- /dev/null +++ b/Rosetta2-JAMF.sh @@ -0,0 +1,23 @@ +#!/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 +echo "Running recon so Architecture gets updated and arch based smart groups work" >> ${deplog} +echo "Running recon so Architecture gets updated and arch based smart groups work" +jamf recon +exit 0