mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Update
fix potential error for iPhone5,1 baseband
This commit is contained in:
parent
00978b4120
commit
559d8d1563
@ -46,8 +46,8 @@ SetToolPaths() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SaveExternal() {
|
SaveExternal() {
|
||||||
ExternalURL="https://github.com/LukeZGD/$1.git"
|
local ExternalURL="https://github.com/LukeZGD/$1.git"
|
||||||
External=$1
|
local External=$1
|
||||||
[[ $1 == "iOS-OTA-Downgrader-Keys" ]] && External="firmware"
|
[[ $1 == "iOS-OTA-Downgrader-Keys" ]] && External="firmware"
|
||||||
cd resources
|
cd resources
|
||||||
if [[ ! -d $External || ! -d $External/.git ]]; then
|
if [[ ! -d $External || ! -d $External/.git ]]; then
|
||||||
|
@ -135,6 +135,7 @@ GetDeviceValues() {
|
|||||||
|
|
||||||
CheckM8() {
|
CheckM8() {
|
||||||
local pwnDFUTool
|
local pwnDFUTool
|
||||||
|
local pwnDFUDevice
|
||||||
|
|
||||||
[[ $platform == macos ]] && pwnDFUTool="iPwnder32" || pwnDFUTool="ipwndfu"
|
[[ $platform == macos ]] && pwnDFUTool="iPwnder32" || pwnDFUTool="ipwndfu"
|
||||||
Log "Entering pwnDFU mode with $pwnDFUTool..."
|
Log "Entering pwnDFU mode with $pwnDFUTool..."
|
||||||
|
@ -17,11 +17,9 @@ iDeviceRestore() {
|
|||||||
FRBaseband() {
|
FRBaseband() {
|
||||||
local BasebandSHA1L
|
local BasebandSHA1L
|
||||||
|
|
||||||
if [[ $DeviceProc == 7 ]]; then
|
if [[ $DeviceProc == 7 ]] || [[ $ProductType == "iPhone5,1" && $Baseband5 != 0 ]]; then
|
||||||
mkdir -p saved/baseband 2>/dev/null
|
mkdir -p saved/baseband 2>/dev/null
|
||||||
cp -f $IPSWRestore/Firmware/$Baseband saved/baseband
|
cp -f $IPSWRestore/Firmware/$Baseband saved/baseband
|
||||||
elif [[ $ProductType == "iPhone5,1" && $Baseband5 != 0 ]]; then
|
|
||||||
unzip -o -j $IPSW.ipsw Firmware/$Baseband -d .
|
|
||||||
elif [[ ! -e saved/baseband/$Baseband ]]; then
|
elif [[ ! -e saved/baseband/$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