Last active
July 4, 2016 16:57
-
-
Save citrusui/86058bce50bf995f0c9b to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
cd | |
if [[ -d /tmp/blobs/ ]]; then | |
: | |
else | |
mkdir /tmp/blobs/ | |
fi | |
cd /tmp/blobs/ | |
echo "Downloading savethemblobs..." | |
git clone --quiet https://github.com/Neal/savethemblobs | |
echo "Done." | |
cd savethemblobs | |
echo "Fetching iPhone5,3 blobs for the latest signed iOS version(s)..." | |
python savethemblobs.py --skip-cydia --skip-ifaith 1089747600201 iPhone5,3 | |
echo "Fetching iPad2,5 blobs for the latest signed iOS version(s)..." | |
python savethemblobs.py --skip-cydia --skip-ifaith 3502581046731 iPad2,5 | |
echo "Moving blobs to a secure location..." | |
if [[ -d ~/Desktop/SHSH/ ]]; then | |
read -p "About to remove previous temporary directory. Would you like to continue? [Y/N]: " contrmdir | |
if [[ $tempdir = y ]]; then | |
echo "Removing ~/Desktop/SHSH/..." | |
rm -rf ~/Desktop/SHSH/ | |
echo "Done." | |
else | |
echo "Cannot continue. Salvage your things from ~/Desktop/SHSH/ before continuing." | |
rm -rf /tmp/blobs/ | |
exit | |
fi | |
fi | |
mkdir ~/Desktop/SHSH/ | |
read -p "What iOS version was fetched?: " version | |
echo "Moving iPhone5,3 with the ECID of 1089747600201 for iOS $version..." | |
cp ~/.shsh/1089747600201_iPhone5,3_$version* ~/Desktop/SHSH/ | |
echo "Moving iPad2,5 with the ECID of 3502581046731 for iOS $version..." | |
cp ~/.shsh/3502581046731_iPad2,5_$version* ~/Desktop/SHSH/ | |
read -p "Was there any other iOS version fetched? [Y/N]: " otherver | |
if [[ $otherver = y ]]; then | |
read -p "What other version was fetched? " secondver | |
echo "Moving iPhone5,3 with the ECID of 1089747600201 for iOS $secondver..." | |
cp ~/.shsh/1089747600201_iPhone5,3_$secondver* ~/Desktop/SHSH/ | |
echo "Moving iPad2,5 with the ECID of 3502581046731 for iOS $secondver..." | |
cp ~/.shsh/3502581046731_iPad2,5_$secondver* ~/Desktop/SHSH/ | |
fi | |
if [[ $otherver = y ]]; then | |
echo "Zipping..." | |
cd | |
cd Desktop | |
if [[ -f citrusui-shsh-${version}-and-${secondver}.zip ]]; then | |
rm citrusui-shsh-${version}-and-${secondver}.zip | |
fi | |
zip -r citrusui-shsh-${version}-and-${secondver}.zip SHSH/ | awk '/adding/{print $2}' | |
echo "All zipped up. Hooray!" | |
else | |
echo "Zipping..." | |
cd | |
cd Desktop | |
if [[ -f citrusui-shsh-${version}.zip ]]; then | |
rm citrusui-shsh-${version}.zip | |
fi | |
zip -r citrusui-shsh-${version}.zip SHSH/ | awk '/adding/{print $2}' | |
echo "All zipped up. Hooray!" | |
fi | |
echo "Cleaning up..." | |
rm -rf /tmp/blobs/ | |
echo "Done!" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment