Try something for iPod5,1

This commit is contained in:
LukeeGD 2020-07-06 18:16:48 +08:00
parent 13c934d8b3
commit 31fd3f7dff
2 changed files with 15 additions and 4 deletions

Binary file not shown.

View File

@ -112,9 +112,16 @@ function Action {
read -p "[Input] Path to SHSH (drag SHSH to terminal window): " SHSH read -p "[Input] Path to SHSH (drag SHSH to terminal window): " SHSH
fi fi
iBSS="iBSS.$HWModel.RELEASE" if [[ $ProductVer == iPod5,1 ]]; then
IV=$(cat $Firmware/12H321/iv) iBSS="iBSS.${HWModel}ap.RELEASE"
Key=$(cat $Firmware/12H321/key) IV=$(cat $Firmware/10B329/iv)
Key=$(cat $Firmware/10B329/key)
else
iBSS="iBSS.$HWModel.RELEASE"
IV=$(cat $Firmware/12H321/iv)
Key=$(cat $Firmware/12H321/key)
fi
if [[ $Mode == 'Downgrade' ]]; then if [[ $Mode == 'Downgrade' ]]; then
Downgrade Downgrade
elif [[ $Mode == 'SaveOTABlobs' ]]; then elif [[ $Mode == 'SaveOTABlobs' ]]; then
@ -139,7 +146,11 @@ function SaveOTABlobs {
function kDFU { function kDFU {
if [ ! -e saved/$ProductType/$iBSS.dfu ]; then if [ ! -e saved/$ProductType/$iBSS.dfu ]; then
Log "Downloading iBSS..." Log "Downloading iBSS..."
resources/tools/pzb_$platform -g Firmware/dfu/${iBSS}.dfu -o $iBSS.dfu $(cat $Firmware/12H321/url) if [[ $ProductType == iPod5,1 ]]; then
resources/tools/pzb_$platform -g Firmware/dfu/${iBSS}.dfu -o $iBSS.dfu $(cat $Firmware/10B329/url)
else
resources/tools/pzb_$platform -g Firmware/dfu/${iBSS}.dfu -o $iBSS.dfu $(cat $Firmware/12H321/url)
fi
mkdir -p saved/$ProductType 2>/dev/null mkdir -p saved/$ProductType 2>/dev/null
mv $iBSS.dfu saved/$ProductType mv $iBSS.dfu saved/$ProductType
fi fi