mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 15:51:50 +01:00
Update device.sh
This commit is contained in:
parent
3c1fc9fce9
commit
9a189b377d
@ -10,7 +10,8 @@ FindDevice() {
|
||||
|
||||
Log "Finding device in $1 mode..."
|
||||
while (( $i < $Timeout )); do
|
||||
[[ $($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-) == "$1" ]] && DeviceIn=1
|
||||
[[ $platform == "linux" ]] && DeviceIn=$(lsusb | grep -c $USB)
|
||||
[[ $platform == "macos" && $($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-) == "$1" ]] && DeviceIn=1
|
||||
if [[ $DeviceIn == 1 ]]; then
|
||||
Log "Found device in $1 mode."
|
||||
DeviceState="$1"
|
||||
|
Loading…
Reference in New Issue
Block a user