From 9107776d3370ee7219a472b387776458662acc82 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Sun, 15 Nov 2020 19:15:09 +0800 Subject: [PATCH] Fix a potential issue with iPhone5,1 baseband --- restore.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/restore.sh b/restore.sh index 96b1954..69d6473 100755 --- a/restore.sh +++ b/restore.sh @@ -535,11 +535,11 @@ function Downgrade { if [[ $A7Device == 1 ]]; then cp $IPSW/Firmware/$Baseband . elif [ $ProductType == iPhone5,1 ] && [[ $Baseband5 != 0 ]]; then - unzip -o -j $IPSW.ipsw Firmware/$Baseband -d . - cp $BuildManifest BuildManifest.plist + [ ! -e saved/$ProductType/*.bbfw ] && unzip -o -j $IPSW.ipsw Firmware/$Baseband -d saved/$ProductType + cp saved/$ProductType/*.bbfw $BuildManifest . elif [ ! -e saved/$ProductType/*.bbfw ]; then Log "Downloading baseband..." - $partialzip $BasebandURL Firmware/$Baseband $Baseband + $partialzip $BasebandURL Firmware/$Baseband $Baseband $partialzip $BasebandURL BuildManifest.plist BuildManifest.plist mkdir -p saved/$ProductType 2>/dev/null cp $Baseband BuildManifest.plist saved/$ProductType