mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-30 11:54:18 +01:00
Find device in pwnREC
(for A7) remove "continuing anyway" as that will just always fail
This commit is contained in:
parent
7b18f3bdb1
commit
4a0b20351c
14
restore.sh
14
restore.sh
@ -345,14 +345,14 @@ function Downgrade {
|
|||||||
echo "[Error] Failed to detect device in pwnREC mode."
|
echo "[Error] Failed to detect device in pwnREC mode."
|
||||||
echo "* If you device has backlight turned on, you may try re-plugging in your device and attempt to continue"
|
echo "* If you device has backlight turned on, you may try re-plugging in your device and attempt to continue"
|
||||||
echo "* Press ENTER to continue (or press Ctrl+C to cancel)"
|
echo "* Press ENTER to continue (or press Ctrl+C to cancel)"
|
||||||
read
|
read -s
|
||||||
|
Log "Finding device in pwnREC mode..."
|
||||||
|
while [[ $RecoveryDevice != 1 ]]; do
|
||||||
RecoveryDevice=$(lsusb | grep -c '1281')
|
RecoveryDevice=$(lsusb | grep -c '1281')
|
||||||
if [[ $RecoveryDevice != 1 ]]; then
|
sleep 2
|
||||||
Log "Failed to detect device in pwnREC mode but continuing anyway."
|
done
|
||||||
else
|
|
||||||
Log "Device in pwnREC mode detected."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
Log "Found device in pwnREC mode."
|
||||||
SaveOTABlobs
|
SaveOTABlobs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -389,7 +389,7 @@ function Downgrade {
|
|||||||
echo "* Your device is still in kDFU mode and you may run the script again"
|
echo "* Your device is still in kDFU mode and you may run the script again"
|
||||||
echo "* You can also continue and futurerestore can attempt to download the baseband again"
|
echo "* You can also continue and futurerestore can attempt to download the baseband again"
|
||||||
echo "* Press ENTER to continue (or press Ctrl+C to cancel)"
|
echo "* Press ENTER to continue (or press Ctrl+C to cancel)"
|
||||||
read
|
read -s
|
||||||
if [[ $A7Device == 1 ]]; then
|
if [[ $A7Device == 1 ]]; then
|
||||||
$futurerestore2 -t $SHSH -s $SEP -m $BuildManifest --latest-baseband $IPSW.ipsw
|
$futurerestore2 -t $SHSH -s $SEP -m $BuildManifest --latest-baseband $IPSW.ipsw
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user