Fix jailbreak option issue (A5 Rev A)

mentioned in #98
This commit is contained in:
LukeZGD 2021-06-13 19:48:06 +08:00
parent 559d8d1563
commit a3f9f72d3b

View File

@ -78,8 +78,9 @@ Downgrade() {
elif [[ $Mode == "Downgrade" && $DeviceProc != 7 ]]; then elif [[ $Mode == "Downgrade" && $DeviceProc != 7 ]]; then
read -p "$(Input 'Jailbreak the selected iOS version? (y/N):')" Jailbreak read -p "$(Input 'Jailbreak the selected iOS version? (y/N):')" Jailbreak
[[ $Jailbreak == 'Y' || $Jailbreak == 'y' ]] && Jailbreak=1
if [[ $Jailbreak == 'Y' || $Jailbreak == 'y' ]]; then
Jailbreak=1
if [[ $ProductType == "iPad2,5" || $ProductType == "iPad2,6" || if [[ $ProductType == "iPad2,5" || $ProductType == "iPad2,6" ||
$ProductType == "iPad2,7" || $ProductType == "iPod5,1" ]]; then $ProductType == "iPad2,7" || $ProductType == "iPod5,1" ]]; then
Log "Warning - A5 Rev A device detected. Enabling the jailbreak option might not work for you" Log "Warning - A5 Rev A device detected. Enabling the jailbreak option might not work for you"
@ -87,6 +88,7 @@ Downgrade() {
[[ $Jailbreak == 'Y' || $Jailbreak == 'y' ]] && Jailbreak=1 || exit 0 [[ $Jailbreak == 'Y' || $Jailbreak == 'y' ]] && Jailbreak=1 || exit 0
fi fi
fi fi
fi
if [[ $Mode == "Downgrade" && $ProductType == "iPhone5,1" && $Jailbreak != 1 ]]; then if [[ $Mode == "Downgrade" && $ProductType == "iPhone5,1" && $Jailbreak != 1 ]]; then
Echo "* By default, iOS-OTA-Downgrader now flashes the iOS 8.4.1 baseband to iPhone5,1" Echo "* By default, iOS-OTA-Downgrader now flashes the iOS 8.4.1 baseband to iPhone5,1"