Fix a potential issue with iPhone5,1 baseband

This commit is contained in:
LukeeGD 2020-11-15 19:15:09 +08:00
parent 9c9468755a
commit 9107776d33

View File

@ -535,11 +535,11 @@ function Downgrade {
if [[ $A7Device == 1 ]]; then if [[ $A7Device == 1 ]]; then
cp $IPSW/Firmware/$Baseband . cp $IPSW/Firmware/$Baseband .
elif [ $ProductType == iPhone5,1 ] && [[ $Baseband5 != 0 ]]; then elif [ $ProductType == iPhone5,1 ] && [[ $Baseband5 != 0 ]]; then
unzip -o -j $IPSW.ipsw Firmware/$Baseband -d . [ ! -e saved/$ProductType/*.bbfw ] && unzip -o -j $IPSW.ipsw Firmware/$Baseband -d saved/$ProductType
cp $BuildManifest BuildManifest.plist cp saved/$ProductType/*.bbfw $BuildManifest .
elif [ ! -e saved/$ProductType/*.bbfw ]; then elif [ ! -e saved/$ProductType/*.bbfw ]; then
Log "Downloading baseband..." Log "Downloading baseband..."
$partialzip $BasebandURL Firmware/$Baseband $Baseband $partialzip $BasebandURL Firmware/$Baseband $Baseband
$partialzip $BasebandURL BuildManifest.plist BuildManifest.plist $partialzip $BasebandURL BuildManifest.plist BuildManifest.plist
mkdir -p saved/$ProductType 2>/dev/null mkdir -p saved/$ProductType 2>/dev/null
cp $Baseband BuildManifest.plist saved/$ProductType cp $Baseband BuildManifest.plist saved/$ProductType