Forked from ndfred/install_airport_utility_5.6.1.sh
Created
September 26, 2022 03:40
-
-
Save RTFMFFS/c3a6faf41bf68515fb61d0dc028d280b to your computer and use it in GitHub Desktop.
Download and install the Airport Utility 5.6.1 app on Mac OS X Lion and up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Download and install the Airport Utility 5.6.1 app on Mac OS X Lion and up | |
if [ ! -d "/Applications/Utilities/AirPort Utility 5.6.1.app" ] | |
then | |
[ -d /Volumes/AirPortUtility ] && hdiutil detach /Volumes/AirPortUtility | |
rm -rf /tmp/AirPortUtility5.6.1.dmg /tmp/AirPortUtility5.6.1 | |
echo "Downloading Airport Utility 5.6.1" | |
curl -s -L http://support.apple.com/downloads/DL1536/en_US/AirPortUtility5.6.1.dmg -o /tmp/AirPortUtility5.6.1.dmg | |
echo "Installing Airport Utility 5.6.1" | |
hdiutil attach -quiet /tmp/AirPortUtility5.6.1.dmg | |
mkdir /tmp/AirPortUtility5.6.1 | |
xar -x -f /Volumes/AirPortUtility/AirPortUtility.pkg -C /tmp/AirPortUtility5.6.1 | |
hdiutil detach -quiet /Volumes/AirPortUtility | |
gzcat /tmp/AirPortUtility5.6.1/AirPortUtility.pkg/Payload | tar -C /tmp/AirPortUtility5.6.1 -xf - | |
mv "/tmp/AirPortUtility5.6.1/Applications/Utilities/AirPort Utility.app" "/Applications/Utilities/AirPort Utility 5.6.1.app" | |
rm -rf /tmp/AirPortUtility5.6.1.dmg /tmp/AirPortUtility5.6.1 | |
fi | |
echo "You can now find the Airport Utility 5.6.1 app in /Applications/Utilities" | |
open -a "/Applications/Utilities/AirPort Utility 5.6.1.app" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment