mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-17 08:56:22 +01:00
parent
9dc6ca1657
commit
5716a94c03
11
restore.sh
11
restore.sh
@ -333,7 +333,7 @@ function CheckM8 {
|
|||||||
function Downgrade {
|
function Downgrade {
|
||||||
if [[ $OSVer != 'Other' ]]; then
|
if [[ $OSVer != 'Other' ]]; then
|
||||||
[[ $ProductType == iPad4* ]] && IPSWType="iPad_64bit"
|
[[ $ProductType == iPad4* ]] && IPSWType="iPad_64bit"
|
||||||
[[ $ProductType == iPhone6* ]] && IPSWType="iPhone_64bit"
|
[[ $ProductType == iPhone6* ]] && IPSWType="iPhone_4.0_64bit"
|
||||||
[[ ! $IPSWType ]] && IPSWType="$ProductType" && SaveOTABlobs
|
[[ ! $IPSWType ]] && IPSWType="$ProductType" && SaveOTABlobs
|
||||||
IPSW="${IPSWType}_${OSVer}_${BuildVer}_Restore"
|
IPSW="${IPSWType}_${OSVer}_${BuildVer}_Restore"
|
||||||
IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom"
|
IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom"
|
||||||
@ -397,14 +397,11 @@ function Downgrade {
|
|||||||
if [[ $RecoveryDevice != 1 ]]; then
|
if [[ $RecoveryDevice != 1 ]]; then
|
||||||
echo -e "\n$(Log 'Failed to detect device in pwnREC mode.')"
|
echo -e "\n$(Log '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"
|
||||||
Input "* Press ENTER to continue (or press Ctrl+C to cancel)"
|
Input "Press ENTER to continue anyway (or press Ctrl+C to cancel)"
|
||||||
read -s
|
read -s
|
||||||
Log "Finding device in pwnREC mode..."
|
else
|
||||||
while [[ $RecoveryDevice != 1 ]]; do
|
Log "Found device in pwnREC mode."
|
||||||
[[ $($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-) == "Recovery" ]] && RecoveryDevice=1
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
Log "Found device in pwnREC mode."
|
|
||||||
SaveOTABlobs
|
SaveOTABlobs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user