mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Add "DisableBBUpdate"
Disable baseband update for the device in this variable
This commit is contained in:
parent
ac8361dae6
commit
ba2af83749
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DisableBBUpdate="iPad2,3" # Disable baseband update for this device. You can also change this to your device if needed
|
||||||
|
|
||||||
FindDevice() {
|
FindDevice() {
|
||||||
local DeviceIn
|
local DeviceIn
|
||||||
local i=0
|
local i=0
|
||||||
|
@ -190,7 +190,7 @@ DowngradeOTA() {
|
|||||||
SaveOTABlobs
|
SaveOTABlobs
|
||||||
IPSWFindVerify
|
IPSWFindVerify
|
||||||
kDFU
|
kDFU
|
||||||
if [[ $Jailbreak == 1 || $ProductType == "iPad2,3" ]]; then
|
if [[ $Jailbreak == 1 || $ProductType == "$DisableBBUpdate" ]]; then
|
||||||
IPSW32
|
IPSW32
|
||||||
else
|
else
|
||||||
IPSWCustom=0
|
IPSWCustom=0
|
||||||
|
@ -22,13 +22,13 @@ JailbreakSet() {
|
|||||||
[[ $OSVer == "8.4.1" ]] && JBDaibutsu=1
|
[[ $OSVer == "8.4.1" ]] && JBDaibutsu=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ $platform == "win" ]] && IPSWCustom="${IPSWCustom}JB"
|
[[ $platform == "win" ]] && IPSWCustom+="JB"
|
||||||
if [[ $JBDaibutsu == 1 ]]; then
|
if [[ $JBDaibutsu == 1 ]]; then
|
||||||
JBName="daibutsu"
|
JBName="daibutsu"
|
||||||
IPSWCustom="${IPSWCustom}D"
|
IPSWCustom+="D"
|
||||||
elif [[ $OSVer == "8.4.1" ]]; then
|
elif [[ $OSVer == "8.4.1" ]]; then
|
||||||
JBName="EtasonJB"
|
JBName="EtasonJB"
|
||||||
IPSWCustom="${IPSWCustom}E"
|
IPSWCustom+="E"
|
||||||
elif [[ $OSVer == "7.1.2" ]]; then
|
elif [[ $OSVer == "7.1.2" ]]; then
|
||||||
JBName="Pangu7"
|
JBName="Pangu7"
|
||||||
elif [[ $OSVer == "6"* && $ProductType == "iPhone3"* ]]; then
|
elif [[ $OSVer == "6"* && $ProductType == "iPhone3"* ]]; then
|
||||||
@ -67,7 +67,13 @@ JailbreakOption() {
|
|||||||
if [[ $ProductType == "iPhone3"* ]]; then
|
if [[ $ProductType == "iPhone3"* ]]; then
|
||||||
[[ $Jailbreak == 1 ]] && Custom="Custom" || Custom="CustomN"
|
[[ $Jailbreak == 1 ]] && Custom="Custom" || Custom="CustomN"
|
||||||
IPSWCustom="${ProductType}_${OSVer}_${BuildVer}_${Custom}"
|
IPSWCustom="${ProductType}_${OSVer}_${BuildVer}_${Custom}"
|
||||||
[[ $OSVer == 4.3* ]] && IPSWCustom="$IPSWCustom-$UniqueChipID"
|
[[ $OSVer == 4.3* ]] && IPSWCustom+="-$UniqueChipID"
|
||||||
|
elif [[ $ProductType == "$DisableBBUpdate" ]]; then
|
||||||
|
Log "Baseband update will be disabled for the custom IPSW."
|
||||||
|
IPSWCustom+="B"
|
||||||
|
if [[ $platform != "win" && $Jailbreak != 1 ]]; then
|
||||||
|
IPSWCustom+="N"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
||||||
@ -75,7 +81,7 @@ JailbreakOption() {
|
|||||||
if [[ $Jailbreak != 1 ]]; then
|
if [[ $Jailbreak != 1 ]]; then
|
||||||
if [[ $ProductType == "iPhone3"* ]]; then
|
if [[ $ProductType == "iPhone3"* ]]; then
|
||||||
[[ $OSVer == "7.1.2" ]] && return
|
[[ $OSVer == "7.1.2" ]] && return
|
||||||
else
|
elif [[ $ProductType != "$DisableBBUpdate" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -213,13 +219,10 @@ IPSW32() {
|
|||||||
JBFiles[$i]=../resources/jailbreak/${JBFiles[$i]}
|
JBFiles[$i]=../resources/jailbreak/${JBFiles[$i]}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
[[ $ProductType == "$DisableBBUpdate" ]] && BBUpdate=
|
||||||
if [[ $platform == "win" ]]; then
|
if [[ $platform == "win" ]]; then
|
||||||
BBUpdate=
|
BBUpdate=
|
||||||
WinBundles="windows/"
|
WinBundles="windows/"
|
||||||
elif [[ $ProductType == "iPad2,3" ]]; then
|
|
||||||
BBUpdate=
|
|
||||||
[[ $Jailbreak != 1 ]] && IPSWCustom+="N"
|
|
||||||
IPSWCustom+="B"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -e $IPSWCustom.ipsw ]]; then
|
if [[ ! -e $IPSWCustom.ipsw ]]; then
|
||||||
|
@ -31,7 +31,7 @@ if [[ $NoColor != 1 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
Clean() {
|
Clean() {
|
||||||
rm -rf iP*/ shsh/ tmp/ *.im4p *.bbfw BuildManifest.plist version.xml
|
rm -rf iP*/ shsh/ tmp/ *.im4p *.bbfw *.plist *.tmp version.xml
|
||||||
kill $iproxyPID $ServerPID 2>/dev/null
|
kill $iproxyPID $ServerPID 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ Main() {
|
|||||||
if [[ $DeviceProc == 4 && $OSVer == "7.1.2" ]]; then
|
if [[ $DeviceProc == 4 && $OSVer == "7.1.2" ]]; then
|
||||||
Log "Creating custom IPSW is not needed for non-jailbroken 7.1.2 restores."
|
Log "Creating custom IPSW is not needed for non-jailbroken 7.1.2 restores."
|
||||||
ExitWin 0
|
ExitWin 0
|
||||||
elif [[ $ProductType != "iPhone3"* && $ProductType != "iPad2,3" ]]; then
|
elif [[ $ProductType != "iPhone3"* && $ProductType != "$DisableBBUpdate" ]]; then
|
||||||
Log "Creating custom IPSW is not needed for non-jailbroken restores on your device."
|
Log "Creating custom IPSW is not needed for non-jailbroken restores on your device."
|
||||||
ExitWin 0
|
ExitWin 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user