add futurerestore execute again

This commit is contained in:
edwin 2023-03-23 08:03:36 -04:00
parent a5195e1212
commit e15d6c444b

View file

@ -687,7 +687,7 @@ if [ "$downgrade" = "1" ]; then
else else
"$dir"/img4 -i work/"$(binaries/Linux/PlistBuddy work/BuildManifest.plist -c "Print BuildIdentities:0:Manifest:RestoreKernelCache:Info:Path" | sed 's/"//g')" -o work/kcache.dec "$dir"/img4 -i work/"$(binaries/Linux/PlistBuddy work/BuildManifest.plist -c "Print BuildIdentities:0:Manifest:RestoreKernelCache:Info:Path" | sed 's/"//g')" -o work/kcache.dec
fi fi
"$dir"/Kernel64Patcher work/kcache.dec work/kcache.patched -a -b -e "$dir"/Kernel64Patcher work/kcache.dec work/kcache.patched -a -f -e
python3 -m pyimg4 im4p create -i work/kcache.patched -o work/rkrn.im4p -f rkrn --lzss python3 -m pyimg4 im4p create -i work/kcache.patched -o work/rkrn.im4p -f rkrn --lzss
@ -756,22 +756,17 @@ if [ "$downgrade" = "1" ]; then
sleep 1 sleep 1
"$dir"/gaster reset "$dir"/gaster reset
echo "boot files created now we will downgrade"
if [ $(_runFuturerestore) ]; then
echo "that seems like futurerestore fails, we can try again"
fi
sleep 2
echo "click enter"
read -n 1 -s
echo "did the futurerestore gave you a error like ERROR: Unable to send iBSS component: Unable to upload data to device, write yes to try again write no to exit "
read -r answer
if [ "$answer" = 'yes' ]; then echo "boot files created now we start to downgrade"
echo "running future restore again " if [ $(_runFuturerestore) ]; then
echo "sucess?"
else
echo "that seems like futurerestore fails, we can try again"
_runFuturerestore _runFuturerestore
elif [ "$answer" = 'no' ]; then echo "if this fails again try
echo "thank you for use this" "$dir"/futurerestore -t blobs/"$deviceid"-"$version".shsh2 --use-pwndfu --skip-blob \
exit; --rdsk work/rdsk.im4p --rkrn work/rkrn.im4p \
--latest-sep --latest-baseband $ipsw"
fi fi
echo "finished to downgrade now you can boot using --boot" echo "finished to downgrade now you can boot using --boot"