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() {
|
||||
ExternalURL="https://github.com/LukeZGD/$1.git"
|
||||
External=$1
|
||||
local ExternalURL="https://github.com/LukeZGD/$1.git"
|
||||
local External=$1
|
||||
[[ $1 == "iOS-OTA-Downgrader-Keys" ]] && External="firmware"
|
||||
cd resources
|
||||
if [[ ! -d $External || ! -d $External/.git ]]; then
|
||||
|
@ -135,6 +135,7 @@ GetDeviceValues() {
|
||||
|
||||
CheckM8() {
|
||||
local pwnDFUTool
|
||||
local pwnDFUDevice
|
||||
|
||||
[[ $platform == macos ]] && pwnDFUTool="iPwnder32" || pwnDFUTool="ipwndfu"
|
||||
Log "Entering pwnDFU mode with $pwnDFUTool..."
|
||||
|
@ -17,11 +17,9 @@ iDeviceRestore() {
|
||||
FRBaseband() {
|
||||
local BasebandSHA1L
|
||||
|
||||
if [[ $DeviceProc == 7 ]]; then
|
||||
if [[ $DeviceProc == 7 ]] || [[ $ProductType == "iPhone5,1" && $Baseband5 != 0 ]]; then
|
||||
mkdir -p saved/baseband 2>/dev/null
|
||||
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
|
||||
Log "Downloading baseband..."
|
||||
$partialzip $BasebandURL Firmware/$Baseband $Baseband
|
||||
|
Loading…
Reference in New Issue
Block a user