Skip to content

Commit

Permalink
update actual code in script
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmansion committed Mar 12, 2017
1 parent 14cf370 commit 64de95e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions ipswget.sh
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

0 comments on commit 64de95e

Please sign in to comment.