mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-26 08:11:50 +01:00
Fix "Other" downgrades
This commit is contained in:
parent
c053bb5569
commit
1eaaab59f0
@ -169,19 +169,21 @@ Downgrade() {
|
|||||||
mkdir -p saved/$ProductType 2>/dev/null
|
mkdir -p saved/$ProductType 2>/dev/null
|
||||||
unzip -o -j $IPSW.ipsw Firmware/dfu/$iBSS.dfu -d saved/$ProductType
|
unzip -o -j $IPSW.ipsw Firmware/dfu/$iBSS.dfu -d saved/$ProductType
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
IPSWCustom=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ $DeviceState == "Normal" ]] && kDFU
|
[[ $DeviceState == "Normal" ]] && kDFU
|
||||||
|
|
||||||
if [[ $Jailbreak == 1 || $IPSWRestore == $IPSWCustom || $IPSWCustomW == 1 ]]; then
|
if [[ $Jailbreak == 1 || $IPSWRestore == $IPSWCustom || $IPSWCustomW == 1 ]]; then
|
||||||
[[ $Jailbreak == 1 || $IPSWCustomW == 1 ]] && IPSW32
|
[[ $Jailbreak == 1 || $IPSWCustomW == 1 ]] && IPSW32
|
||||||
IPSWExtract=$IPSWCustom
|
IPSWExtract="$IPSWCustom"
|
||||||
else
|
else
|
||||||
IPSWExtract=$IPSW
|
IPSWExtract="$IPSW"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Log "Extracting IPSW: $IPSWExtract.ipsw"
|
Log "Extracting IPSW: $IPSWExtract.ipsw"
|
||||||
unzip -q $IPSWExtract.ipsw -d $IPSWExtract/
|
unzip -q "$IPSWExtract.ipsw" -d "$IPSWExtract"/
|
||||||
|
|
||||||
if [[ $DeviceProc == 7 ]]; then
|
if [[ $DeviceProc == 7 ]]; then
|
||||||
IPSW64
|
IPSW64
|
||||||
|
Loading…
Reference in New Issue
Block a user