mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Some small changes
This commit is contained in:
parent
80cf3813d9
commit
51c34b9b93
16
restore.sh
16
restore.sh
@ -43,13 +43,7 @@ function MainMenu {
|
|||||||
read -p "[Input] Device in DFU mode detected. Is the device in kDFU mode? (y/N) " kDFUManual
|
read -p "[Input] Device in DFU mode detected. Is the device in kDFU mode? (y/N) " kDFUManual
|
||||||
if [[ $kDFUManual == y ]] || [[ $kDFUManual == Y ]]; then
|
if [[ $kDFUManual == y ]] || [[ $kDFUManual == Y ]]; then
|
||||||
read -p "[Input] Enter ProductType (eg. iPad2,1): " ProductType
|
read -p "[Input] Enter ProductType (eg. iPad2,1): " ProductType
|
||||||
if [ $(which irecovery) ]; then
|
read -p "[Input] Enter UniqueChipID (ECID): " UniqueChipID
|
||||||
# Get ECID with irecovery (optional)
|
|
||||||
Log "Getting UniqueChipID (ECID) with irecovery..."
|
|
||||||
UniqueChipID=$(sudo irecovery -q | grep 'ECID:' | cut -c 7-)
|
|
||||||
else
|
|
||||||
read -p "[Input] Enter UniqueChipID (ECID): " UniqueChipID
|
|
||||||
fi
|
|
||||||
BasebandDetect
|
BasebandDetect
|
||||||
Log "Downgrading device $ProductType in kDFU mode..."
|
Log "Downgrading device $ProductType in kDFU mode..."
|
||||||
Mode='Downgrade'
|
Mode='Downgrade'
|
||||||
@ -256,9 +250,11 @@ function Downgrade {
|
|||||||
if [ $SHA1IPSW != $SHA1IPSWL ]; then
|
if [ $SHA1IPSW != $SHA1IPSWL ]; then
|
||||||
Error "SHA1 of IPSW does not match. Please run the script again"
|
Error "SHA1 of IPSW does not match. Please run the script again"
|
||||||
fi
|
fi
|
||||||
Log "Extracting iBSS from IPSW..."
|
if [ ! $kDFUManual ]; then
|
||||||
mkdir -p saved/$ProductType 2>/dev/null
|
Log "Extracting iBSS from IPSW..."
|
||||||
unzip -o -j "$IPSW.ipsw" Firmware/dfu/$iBSS.dfu -d saved/$ProductType
|
mkdir -p saved/$ProductType 2>/dev/null
|
||||||
|
unzip -o -j "$IPSW.ipsw" Firmware/dfu/$iBSS.dfu -d saved/$ProductType
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! $kDFUManual ] && kDFU
|
[ ! $kDFUManual ] && kDFU
|
||||||
|
Loading…
Reference in New Issue
Block a user