Skip to content

Instantly share code, notes, and snippets.

@ndfred
Created November 8, 2012 22:22
Show Gist options
  • Save ndfred/4042147 to your computer and use it in GitHub Desktop.
Save ndfred/4042147 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
#!/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