iOS 4.0 firmware release expected momentarily, quick Terminal tip to check
Last year, we showed you how to check for the 3.0 firmware release via the terminal command line. As we move into the new year, TUAW reader Mike K writes in, saying "Being compulsive, is the terminal command to check for 3.0 the same as for 4.0? I'd love to know..."Hey Mike, yes the terminal command is more or less the same as last year, but we have a slight improvement for you, so your system will speak to you when the new firmware goes live.
#! /bin/csh
curl -s -L http://phobos.apple.com/version | grep -i Restore | grep -i iPhone | grep -i 4.0
if ($? == 1) then
echo "Nothing yet..."
else
say "FOUR POINT OH FIRMWARE IS NOW AVAILABLE"
endif
sleep 30
Save this script into a new file (e.g. "checkingscript") and chmod it to 755 so it will be executable. (The line that starts with "curl" and ends with "4.0" is a single line -- so make sure you don't split it in two. Also make sure you put a carriage return at the end of the "sleep 30" line.) Then run the script from the command line using a repeat command, e.g. repeat 5000 ./checkingscript. The built-in "sleep" command ensures that it will wait 30 seconds between attempts. If you are not using csh or tcsh, just type csh at the command line before issuing the repeat command.
The script works by checking for iPhone restore firmware that has 4.0 in the name. When it finds this, the curl command will return a success (exit status 0 versus a failed exit status of 1) and your system will speak to you using the OS X "say" command.
You will need to select your firmware using the iPhone or iPod touch model. They are:
- iPhone 3G: iPhone 1,2
- iPhone 3GS: iPhone 2,1
- iPod touch 2G: iPod 2,1
- iPod touch 3G: iPod 3,1
To download, copy the full phobos.apple.com URL and paste it into Safari's download window or use any other favorite method to retrieve the firmware. Then hold the Option key and click Update in iTunes. Navigate to the firmware (the ipsw file), select it, and 4.0's good to go. Of course, you can also download directly through iTunes as soon as the update is available.
Share
Categories
Last year, we showed you how to check for the 3.0 firmware release via the terminal command line. As we move into the new year, TUAW reader...
Add a Comment
Really, csh? Ugh.
Use something like @dniq's version, instead (currently on page 2). No need for non-standard shells, and stops on success. You don't even need to save it in a script -- just paste everything except the first "#!/bin/bash" line and go.
Incidentally: http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
Installing now! (-_^)b
June 21 2010 at 1:20 PM Report abuse Permalink rate up rate down ReplyIOS4 is up and ready to download!
June 21 2010 at 1:15 PM Report abuse Permalink rate up rate down ReplyThank you TUAW! Great script! I'm downloading iOS4 right now with my super fast italian ADLS (sigh!) 292,1 MB in... better not say :-(
June 21 2010 at 1:13 PM Report abuse Permalink rate up rate down ReplyDownloaded. Installing now on a 3G..
June 21 2010 at 1:11 PM Report abuse Permalink rate up rate down ReplyIt's available. Downloading now.
June 21 2010 at 1:08 PM Report abuse Permalink rate up rate down Replyso I freely admit my ineptitude at terminal & coding.
Could somebody post the direct link to manually download the 4.0 firmware for iphone 3G?
Still tells me 3.1.3 is the latest version.
June 21 2010 at 1:06 PM Report abuse Permalink rate up rate down ReplyHow about a link to the iPhone 4.0 .ipsw
June 21 2010 at 1:06 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



66 Comments