mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-30 11:54:18 +01:00
Update restore.sh
This commit is contained in:
parent
a1232cc788
commit
d5a8bcc877
47
restore.sh
47
restore.sh
@ -1,14 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ $OSTYPE == "linux-gnu" ]]; then
|
|
||||||
platform="linux"
|
|
||||||
elif [[ $OSTYPE == "darwin"* ]]; then
|
|
||||||
platform="macos"
|
|
||||||
else
|
|
||||||
echo "OSTYPE unknown/not supported"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
iv_k93=781b9672a86ba1b41f8b7fa0af714c94
|
iv_k93=781b9672a86ba1b41f8b7fa0af714c94
|
||||||
key_k93=bbd7bf676dbcc6ba93c76d496b7af39ae7772eaaad2ec9fb71dc1fd004827784
|
key_k93=bbd7bf676dbcc6ba93c76d496b7af39ae7772eaaad2ec9fb71dc1fd004827784
|
||||||
|
|
||||||
@ -276,22 +267,10 @@ function FindDFU {
|
|||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
HardwareModel=$(ideviceinfo | grep 'HardwareModel' | cut -c 16-)
|
|
||||||
HardwareModelLower=$(echo $HardwareModel | tr '[:upper:]' '[:lower:]' | sed 's/.\{2\}$//')
|
|
||||||
ProductType=$(ideviceinfo | grep 'ProductType' | cut -c 14-)
|
|
||||||
ProductVersion=$(ideviceinfo | grep 'ProductVersion' | cut -c 17-)
|
|
||||||
VersionDetect=$(echo $ProductVersion | cut -c 1)
|
|
||||||
UniqueChipID=$(ideviceinfo | grep 'UniqueChipID' | cut -c 15-)
|
|
||||||
|
|
||||||
function MainMenu {
|
function MainMenu {
|
||||||
rm -rf iP*/ tmp/ $(ls *.shsh2 2>/dev/null)
|
rm -rf iP*/ tmp/ $(ls *.shsh2 2>/dev/null)
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
|
|
||||||
clear
|
|
||||||
echo "******* 32bit-OTA-Downgrader *******"
|
|
||||||
echo " - by LukeZGD "
|
|
||||||
echo
|
|
||||||
|
|
||||||
if [ ! $HardwareModel ]
|
if [ ! $HardwareModel ]
|
||||||
then
|
then
|
||||||
echo "Please plug the device in and trust this computer before proceeding"
|
echo "Please plug the device in and trust this computer before proceeding"
|
||||||
@ -321,10 +300,6 @@ done
|
|||||||
}
|
}
|
||||||
|
|
||||||
function InstallDependencies {
|
function InstallDependencies {
|
||||||
clear
|
|
||||||
echo "******* 32bit-OTA-Downgrader *******"
|
|
||||||
echo " - by LukeZGD "
|
|
||||||
echo
|
|
||||||
echo "Install Dependencies"
|
echo "Install Dependencies"
|
||||||
|
|
||||||
. /etc/os-release 2> /dev/null
|
. /etc/os-release 2> /dev/null
|
||||||
@ -395,6 +370,28 @@ function Ubuntu1804 {
|
|||||||
|
|
||||||
# ----------------
|
# ----------------
|
||||||
|
|
||||||
|
clear
|
||||||
|
echo "******* 32bit-OTA-Downgrader *******"
|
||||||
|
echo " - by LukeZGD "
|
||||||
|
echo
|
||||||
|
|
||||||
|
if [[ $OSTYPE == "linux-gnu" ]]; then
|
||||||
|
platform="linux"
|
||||||
|
elif [[ $OSTYPE == "darwin"* ]]; then
|
||||||
|
platform="macos"
|
||||||
|
else
|
||||||
|
echo "OSTYPE unknown/not supported, sorry!"
|
||||||
|
echo "Supports macOS and Linux only"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
HardwareModel=$(ideviceinfo | grep 'HardwareModel' | cut -c 16-)
|
||||||
|
HardwareModelLower=$(echo $HardwareModel | tr '[:upper:]' '[:lower:]' | sed 's/.\{2\}$//')
|
||||||
|
ProductType=$(ideviceinfo | grep 'ProductType' | cut -c 14-)
|
||||||
|
ProductVersion=$(ideviceinfo | grep 'ProductVersion' | cut -c 17-)
|
||||||
|
VersionDetect=$(echo $ProductVersion | cut -c 1)
|
||||||
|
UniqueChipID=$(ideviceinfo | grep 'UniqueChipID' | cut -c 15-)
|
||||||
|
|
||||||
if [ ! $(which bspatch) ] || [ ! $(which ideviceinfo) ] || [ ! $(which ifuse) ] || [ ! $(which lsusb) ] || [ ! $(which ssh) ]
|
if [ ! $(which bspatch) ] || [ ! $(which ideviceinfo) ] || [ ! $(which ifuse) ] || [ ! $(which lsusb) ] || [ ! $(which ssh) ]
|
||||||
then
|
then
|
||||||
InstallDependencies
|
InstallDependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user