mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-28 17:21:48 +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..."
|
||||
ideviceinfo2=$($ideviceinfo -s)
|
||||
Log "Finding device in DFU/recovery mode..."
|
||||
[[ $? != 0 ]] && irecovery2=$($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-)
|
||||
if [[ $? != 0 ]]; then
|
||||
Log "Finding device in DFU/recovery mode..."
|
||||
irecovery2=$($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-)
|
||||
fi
|
||||
[[ $irecovery2 == "DFU" ]] && DFUDevice=1
|
||||
[[ $irecovery2 == "Recovery" ]] && RecoveryDevice=1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user