mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 18:34:14 +01:00
Update SaveExternal
This commit is contained in:
parent
972093c836
commit
64e143db0e
0
resources/tools/futurerestore152_macos
Normal file → Executable file
0
resources/tools/futurerestore152_macos
Normal file → Executable file
46
restore.sh
46
restore.sh
@ -37,7 +37,8 @@ function Main {
|
|||||||
tsschecker="env LD_LIBRARY_PATH=/usr/local/lib resources/tools/tsschecker_$platform"
|
tsschecker="env LD_LIBRARY_PATH=/usr/local/lib resources/tools/tsschecker_$platform"
|
||||||
|
|
||||||
chmod +x resources/tools/*
|
chmod +x resources/tools/*
|
||||||
SaveExternal firmware
|
mkdir tmp
|
||||||
|
SaveExternal iOS-OTA-Downgrader-Keys
|
||||||
SaveExternal ipwndfu
|
SaveExternal ipwndfu
|
||||||
|
|
||||||
DFUDevice=$(lsusb | grep -c '1227')
|
DFUDevice=$(lsusb | grep -c '1227')
|
||||||
@ -149,24 +150,23 @@ function Action {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $ProductType == iPod5,1 ]; then
|
if [ $ProductType == iPod5,1 ]; then
|
||||||
iBSS="iBSS.${HWModel}ap.RELEASE"
|
iBSS="${HWModel}ap"
|
||||||
iBSSBuildVer='10B329'
|
iBSSBuildVer='10B329'
|
||||||
elif [ $ProductType == iPad3,1 ]; then
|
elif [ $ProductType == iPad3,1 ]; then
|
||||||
iBSS="iBSS.${HWModel}ap.RELEASE"
|
iBSS="${HWModel}ap"
|
||||||
iBSSBuildVer='11D257'
|
iBSSBuildVer='11D257'
|
||||||
elif [ $ProductType == iPhone6,1 ] || [ $ProductType == iPhone6,2 ]; then
|
elif [ $ProductType == iPhone6,1 ] || [ $ProductType == iPhone6,2 ]; then
|
||||||
iBSS="iBSS.iphone6.RELEASE"
|
iBSS="iphone6"
|
||||||
iBEC="iBEC.iphone6.RELEASE"
|
|
||||||
elif [ $ProductType == iPad4,1 ] || [ $ProductType == iPad4,2 ] || [ $ProductType == iPad4,3 ]; then
|
elif [ $ProductType == iPad4,1 ] || [ $ProductType == iPad4,2 ] || [ $ProductType == iPad4,3 ]; then
|
||||||
iBSS="iBSS.ipad4.RELEASE"
|
iBSS="ipad4"
|
||||||
iBEC="iBEC.ipad4.RELEASE"
|
|
||||||
elif [ $ProductType == iPad4,4 ] || [ $ProductType == iPad4,5 ]; then
|
elif [ $ProductType == iPad4,4 ] || [ $ProductType == iPad4,5 ]; then
|
||||||
iBSS="iBSS.ipad4b.RELEASE"
|
iBSS="ipad4b"
|
||||||
iBEC="iBEC.ipad4b.RELEASE"
|
|
||||||
else
|
else
|
||||||
iBSS="iBSS.$HWModel.RELEASE"
|
iBSS="$HWModel"
|
||||||
iBSSBuildVer='12H321'
|
iBSSBuildVer='12H321'
|
||||||
fi
|
fi
|
||||||
|
iBEC="iBEC.$iBSS.RELEASE"
|
||||||
|
iBSS="iBSS.$iBSS.RELEASE"
|
||||||
IV=$(cat $Firmware/$iBSSBuildVer/iv 2>/dev/null)
|
IV=$(cat $Firmware/$iBSSBuildVer/iv 2>/dev/null)
|
||||||
Key=$(cat $Firmware/$iBSSBuildVer/key 2>/dev/null)
|
Key=$(cat $Firmware/$iBSSBuildVer/key 2>/dev/null)
|
||||||
|
|
||||||
@ -517,20 +517,22 @@ function Compile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function SaveExternal {
|
function SaveExternal {
|
||||||
if [[ ! $(ls resources/$1 2>/dev/null) ]]; then
|
ExternalURL="https://github.com/LukeZGD/$1.git"
|
||||||
if [[ $1 == 'ipwndfu' ]]; then
|
External=$1
|
||||||
ExternalURL="https://github.com/LukeZGD/ipwndfu/archive/master.zip"
|
[[ $1 == "iOS-OTA-Downgrader-Keys" ]] && External="firmware"
|
||||||
ExternalFile="ipwndfu-master"
|
if [[ ! -d resources/$External ]] || [[ ! -d resources/$External/.git ]]; then
|
||||||
|
Log "Downloading $External..."
|
||||||
|
cd tmp
|
||||||
|
git clone $ExternalURL $External &>/dev/null
|
||||||
|
rm -rf ../resources/$External
|
||||||
|
cp -r $External/ ../resources/
|
||||||
else
|
else
|
||||||
ExternalURL="https://github.com/LukeZGD/iOS-OTA-Downgrader/archive/$1.zip"
|
Log "Updating $External..."
|
||||||
ExternalFile="iOS-OTA-Downgrader-$1"
|
cd resources/$External
|
||||||
fi
|
git pull &>/dev/null
|
||||||
Log "Downloading $1..."
|
cd ..
|
||||||
curl -Ls $ExternalURL -o tmp/$ExternalFile.zip
|
|
||||||
unzip -q tmp/$ExternalFile.zip -d tmp
|
|
||||||
mkdir resources/$1
|
|
||||||
mv tmp/$ExternalFile/* resources/$1
|
|
||||||
fi
|
fi
|
||||||
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
function SavePkg {
|
function SavePkg {
|
||||||
|
Loading…
Reference in New Issue
Block a user