Create restore.sh

This commit is contained in:
LukeeGD 2019-11-19 19:56:44 +08:00
parent 5ed380f430
commit c8c814b0a4

34
restore.sh Normal file
View 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"