-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#!/bin/bash | ||
# Lookup ipsw links by device and iOS version number and download each file to local computer.. | ||
# Get list of ipsw files from Apple download for version specified in variable parameter | ||
# usage ./ipswget.sh "{versionNumber}" | ||
# Remember to chmod +x ipswget.sh | ||
# You can place it in your PATH or your firmware folder to | ||
# Example ./ipswget.sh 10.2.1 <enter> | ||
|
||
version=$1 | ||
|
||
curl http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version | grep ipsw | grep $version | sort -u | sed 's/<string>//g' | sed 's/<\/string>//g' | grep -v protected | awk '{$1=$1}1' > /tmp/ipswlist_iOS${version}.txt | ||
|
||
sort -k 1.89 -o /Users/Shared/acFirmware/iOS${version}_All.txt /tmp/ipswlist_iOS${version}.txt | ||
|
||
#Insert lookup code here | ||
#inster tmp files same | ||
|
||
|
||
filename='peptides.txt' | ||
filelines=`cat $filename` | ||
echo Start | ||
for line in $filelines ; do | ||
curl -O $line | ||
done | ||
cat /tmp/ipswlist_iOS${version}.txt | grep iPhone > /Users/Shared/acFirmware/ipswListiOS${version}_iPhone.txt | ||
cat /tmp/ipswlist_iOS${version}.txt | grep iPad > /Users/Shared/acFirmware/ipswListiOS${version}_iPad.txt | ||
cat /tmp/ipswlist_iOS${version}.txt | grep iPodtouch > /Users/Shared/acFirmware/ipswListiOS${version}_iPodtouch.txt | ||
rm -rf /tmp/ipswlist_iOS${version}.txt |