mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Update restore.sh
This commit is contained in:
parent
7fadc9f9c7
commit
e97b846571
@ -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 "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"
|
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
|
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)
|
BasebandURL=$(cat $Firmware/12H321/url)
|
||||||
Baseband=Mav5-8.02.00.Release.bbfw
|
Baseband=Mav5-8.02.00.Release.bbfw
|
||||||
BasebandSHA1=db71823841ffab5bb41341576e7adaaeceddef1c
|
BasebandSHA1=db71823841ffab5bb41341576e7adaaeceddef1c
|
||||||
@ -532,6 +534,10 @@ function Downgrade {
|
|||||||
else
|
else
|
||||||
if [[ $A7Device == 1 ]]; then
|
if [[ $A7Device == 1 ]]; then
|
||||||
cp $IPSW/Firmware/$Baseband .
|
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
|
elif [ ! -e saved/$ProductType/$Baseband ]; then
|
||||||
Log "Downloading baseband..."
|
Log "Downloading baseband..."
|
||||||
$partialzip $BasebandURL Firmware/$Baseband $Baseband
|
$partialzip $BasebandURL Firmware/$Baseband $Baseband
|
||||||
|
Loading…
Reference in New Issue
Block a user