I have in my first boot script a section that looks at the machine and determines if it's a laptop or desktop. if it's a laptop, it runs a trigger to install the VPN. I was just provided another version of the VPN, but it's for a specific region. I was thinking the easiest way to determine that was to look at the machine name and then say something along the lines of if name = xyz, then install this pkg, else install that pkg.
But I'm not exactly sure how to put that into the script.
maybe it would be easier to take the VPN portion out of the FB script and put 2 separate ones in depending on which config they are put in?
anyway - this is what I'm starting from and was wanting to modify.
# Detects if this Mac is a laptop or not by checking the model ID for the word "Book" in the name.
IS_LAPTOP=`/usr/sbin/system_profiler SPHardwareDataType | grep "Model Identifier" | grep "Book"`
if [[ $shortModel == "MacBook" ]]; then
jamf policy -trigger VPN
else
/bin/echo "VPN Not Installed, desktop machine"
fi