update futurerestore function
This commit is contained in:
parent
8099c7c94e
commit
a5195e1212
2 changed files with 29 additions and 4 deletions
28
downr1n.sh
28
downr1n.sh
|
|
@ -289,7 +289,6 @@ EOF
|
||||||
"$dir"/futurerestore -t blobs/"$deviceid"-"$version".shsh2 --use-pwndfu --skip-blob \
|
"$dir"/futurerestore -t blobs/"$deviceid"-"$version".shsh2 --use-pwndfu --skip-blob \
|
||||||
--rdsk work/rdsk.im4p --rkrn work/rkrn.im4p \
|
--rdsk work/rdsk.im4p --rkrn work/rkrn.im4p \
|
||||||
--latest-sep --latest-baseband $ipsw
|
--latest-sep --latest-baseband $ipsw
|
||||||
exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_boot() {
|
_boot() {
|
||||||
|
|
@ -359,7 +358,10 @@ trap _exit_handler EXIT
|
||||||
# ============
|
# ============
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# ============
|
# ============
|
||||||
|
if [ "$os" = "Linux" ]; then
|
||||||
|
chmod +x getSSHOnLinux.sh
|
||||||
|
sudo bash ./getSSHOnLinux.sh &
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$os" = 'Linux' ]; then
|
if [ "$os" = 'Linux' ]; then
|
||||||
linux_cmds='lsusb'
|
linux_cmds='lsusb'
|
||||||
|
|
@ -751,9 +753,27 @@ if [ "$downgrade" = "1" ]; then
|
||||||
|
|
||||||
cp -rv work/*.img4 "boot/${deviceid}" # copying all file img4 to boot
|
cp -rv work/*.img4 "boot/${deviceid}" # copying all file img4 to boot
|
||||||
|
|
||||||
echo "boot files created now we will downgrade"
|
|
||||||
_runFuturerestore
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
"$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 "running future restore again "
|
||||||
|
_runFuturerestore
|
||||||
|
elif [ "$answer" = 'no' ]; then
|
||||||
|
echo "thank you for use this"
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
|
|
||||||
echo "finished to downgrade now you can boot using --boot"
|
echo "finished to downgrade now you can boot using --boot"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
5
getSSHOnLinux.sh
Executable file
5
getSSHOnLinux.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
sudo systemctl stop usbmuxd
|
||||||
|
sudo usbmuxd -p -f
|
||||||
Loading…
Add table
Reference in a new issue