This commit is contained in:
LukeeGD 2019-11-22 22:10:52 +08:00
parent 3cab3e24e1
commit 54a1cc81db
2 changed files with 4 additions and 10 deletions

View File

@ -149,7 +149,7 @@ function Downgrade {
then then
echo "Downloading ota.json..." echo "Downloading ota.json..."
curl -L -# "https://api.ipsw.me/v2.1/ota.json/condensed" -o "tmp/ota.json" curl -L -# "https://api.ipsw.me/v2.1/ota.json/condensed" -o "tmp/ota.json"
echo 'Copying ota.json to /tmp or $TMPDIR...' echo 'Copying ota.json to tmp...'
if [ $platform == macos ] if [ $platform == macos ]
then then
cp tmp/ota.json $TMPDIR cp tmp/ota.json $TMPDIR
@ -178,13 +178,7 @@ function Downgrade {
fi fi
echo "Saving $DowngradeVersion blobs with tsschecker..." echo "Saving $DowngradeVersion blobs with tsschecker..."
if [[ ! $NoBaseband ]] env "LD_PRELOAD=libcurl.so.3" tools/tsschecker_$platform -d $ProductType -i $DowngradeVersion -o -s -e $UniqueChipID -m tmp/BuildManifest.plist
then
env "LD_PRELOAD=libcurl.so.3" tools/tsschecker_$platform -d $ProductType -i $DowngradeVersion -o -s -e $UniqueChipID -m tmp/BuildManifest.plist
else
echo "Detected device has no baseband"
env "LD_PRELOAD=libcurl.so.3" tools/tsschecker_$platform -d $ProductType -i $DowngradeVersion -o -s -b -e $UniqueChipID -m tmp/BuildManifest.plist
fi
echo echo
if [ ! -e $(ls *.shsh2) ] if [ ! -e $(ls *.shsh2) ]
then then
@ -332,7 +326,7 @@ function MainMenu {
if [ ! $HardwareModel ] if [ ! $HardwareModel ]
then then
echo "Please plug the device in before proceeding" echo "Please plug the device in and trust this computer before proceeding"
exit exit
elif [ $HardwareModel == iPad2,1 ] || [ $HardwareModel == iPad2,4 ] || [ $HardwareModel == iPad2,5 ] || [ $HardwareModel == iPad3,1 ] || [ $HardwareModel == iPad3,4 ] || [ $HardwareModel == iPod5,1 ] elif [ $HardwareModel == iPad2,1 ] || [ $HardwareModel == iPad2,4 ] || [ $HardwareModel == iPad2,5 ] || [ $HardwareModel == iPad3,1 ] || [ $HardwareModel == iPad3,4 ] || [ $HardwareModel == iPod5,1 ]
then then

View File

@ -6,7 +6,7 @@ function ubuntu {
} }
function arch { function arch {
sudo pacman -Sy --noconfirm bsdiff libcurl-compat libpng12 libzip openssl-1.0 usbmuxd usbutils sudo pacman -Sy --noconfirm bsdiff curl libcurl-compat libpng12 libzip openssl-1.0 usbmuxd usbutils
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4 sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
} }