mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-30 20:04:19 +01:00
Update restore.sh
This commit is contained in:
parent
20aba8fee6
commit
5e690a4eab
@ -86,8 +86,10 @@ function Main {
|
|||||||
|
|
||||||
Log "Finding device in normal mode..."
|
Log "Finding device in normal mode..."
|
||||||
ideviceinfo2=$($ideviceinfo -s)
|
ideviceinfo2=$($ideviceinfo -s)
|
||||||
Log "Finding device in DFU/recovery mode..."
|
if [[ $? != 0 ]]; then
|
||||||
[[ $? != 0 ]] && irecovery2=$($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-)
|
Log "Finding device in DFU/recovery mode..."
|
||||||
|
irecovery2=$($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-)
|
||||||
|
fi
|
||||||
[[ $irecovery2 == "DFU" ]] && DFUDevice=1
|
[[ $irecovery2 == "DFU" ]] && DFUDevice=1
|
||||||
[[ $irecovery2 == "Recovery" ]] && RecoveryDevice=1
|
[[ $irecovery2 == "Recovery" ]] && RecoveryDevice=1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user