mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-24 15:21:49 +01:00
Fix a potential issue with iPhone5,1 baseband
This commit is contained in:
parent
9c9468755a
commit
9107776d33
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user