Add files via upload

This commit is contained in:
wattsy74
2021-09-24 15:13:05 +01:00
committed by GitHub
parent 3920e2b770
commit 520947ef50

23
Rosetta2-JAMF.sh Normal file
View File

@@ -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