mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-27 15:35:30 +01:00
parent
395c155201
commit
49a564ccdd
@ -10,7 +10,7 @@ FindDevice() {
|
|||||||
|
|
||||||
Log "Finding device in $1 mode..."
|
Log "Finding device in $1 mode..."
|
||||||
while (( $i < $Timeout )); do
|
while (( $i < $Timeout )); do
|
||||||
[[ $($irecovery -q 2>/dev/null | grep "MODE" | cut -c 7-) == "$1" ]] && DeviceIn=1
|
[[ $($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-) == "$1" ]] && DeviceIn=1
|
||||||
if [[ $DeviceIn == 1 ]]; then
|
if [[ $DeviceIn == 1 ]]; then
|
||||||
Log "Found device in $1 mode."
|
Log "Found device in $1 mode."
|
||||||
DeviceState="$1"
|
DeviceState="$1"
|
||||||
@ -33,7 +33,7 @@ GetDeviceValues() {
|
|||||||
ideviceinfo2=$($ideviceinfo -s)
|
ideviceinfo2=$($ideviceinfo -s)
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
Log "Finding device in DFU/recovery mode..."
|
Log "Finding device in DFU/recovery mode..."
|
||||||
DeviceState="$($irecovery -q 2>/dev/null | grep "MODE" | cut -c 7-)"
|
DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-"
|
||||||
else
|
else
|
||||||
DeviceState="Normal"
|
DeviceState="Normal"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user