mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-06-12 10:49:25 +02:00
more specific lsusb
This commit is contained in:
@ -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
|
||||||
[[ $platform == "linux" ]] && DeviceIn=$(lsusb | grep -c $USB)
|
[[ $platform == "linux" ]] && DeviceIn=$(lsusb | grep -c "05ac:$USB")
|
||||||
[[ $platform == "macos" && $($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-) == "$1" ]] && DeviceIn=1
|
[[ $platform == "macos" && $($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."
|
||||||
|
Reference in New Issue
Block a user