diff --git a/restore.sh b/restore.sh index 414205e..80c3ad5 100755 --- a/restore.sh +++ b/restore.sh @@ -230,7 +230,9 @@ function Action { Echo "Flashing the latest baseband is still available as an option but beware of problems it may cause" Echo "There are potential network issues that with the latest baseband when used on iOS 8.4.1" read -p "$(Input 'Flash the latest baseband? (y/N) (press ENTER when unsure): ')" Baseband5 - if [[ $Baseband5 != y ]] && [[ $Baseband5 != Y ]]; then + if [[ $Baseband5 == y ]] || [[ $Baseband5 == Y ]]; then + Baseband5=0 + else BasebandURL=$(cat $Firmware/12H321/url) Baseband=Mav5-8.02.00.Release.bbfw BasebandSHA1=db71823841ffab5bb41341576e7adaaeceddef1c @@ -532,6 +534,10 @@ function Downgrade { else if [[ $A7Device == 1 ]]; then cp $IPSW/Firmware/$Baseband . + elif [ $ProductType == iPhone5,1 ] && [[ $Baseband5 != 0 ]]; then + [ ! -e saved/$ProductType/$Baseband ] && unzip -o -j $IPSW.ipsw Firmware/$Baseband -d saved/$ProductType + cp saved/$ProductType/$Baseband . + cp $BuildManifest BuildManifest.plist elif [ ! -e saved/$ProductType/$Baseband ]; then Log "Downloading baseband..." $partialzip $BasebandURL Firmware/$Baseband $Baseband