mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-23 23:01:49 +01:00
Create restore.sh
This commit is contained in:
parent
5ed380f430
commit
c8c814b0a4
34
restore.sh
Normal file
34
restore.sh
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
|
||||
echo "******* 841-OTA-Downgrader *******"
|
||||
echo " - by LukeZGD "
|
||||
echo
|
||||
|
||||
HardwareModel=$(ideviceinfo | grep 'HardwareModel' | cut -c 16-)
|
||||
HardwareModelLower=$(echo $HardwareModel | tr '[:upper:]' '[:lower:]' | sed 's/.\{2\}$//')
|
||||
ProductType=$(ideviceinfo | grep 'ProductType' | cut -c 14-)
|
||||
|
||||
if [ ! $HardwareModel ]
|
||||
then
|
||||
echo "Please plug in the device before proceeding"
|
||||
echo
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "HardwareModel = $HardwareModel"
|
||||
echo "ProductType = $ProductType"
|
||||
echo "HardwareModelLower = $HardwareModelLower"
|
||||
echo
|
||||
|
||||
IPSW="${HardwareModel}_8.4.1_12H321_Restore.ipsw"
|
||||
|
||||
if [ -e $IPSW ]
|
||||
then
|
||||
echo "iOS 8.4.1 IPSW is missing! Please put the IPSW on the same directory of this script"
|
||||
echo
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "Downloading kloader..."
|
||||
wget -q "https://github.com/axi0mX/ios-kexec-utils/raw/master/kloader"
|
Loading…
Reference in New Issue
Block a user