mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-03-01 14:25:26 +01:00
Fix kDFU part in Linux
This commit is contained in:
parent
8204a73358
commit
3dc34d35fd
@ -285,11 +285,11 @@ function kDFU {
|
|||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
Echo "* Press POWER or HOME button when screen goes black on the device"
|
Echo "* Press POWER or HOME button when screen goes black on the device"
|
||||||
Input "Press ENTER to continue."
|
|
||||||
read -s
|
|
||||||
Log "Finding device in DFU mode..."
|
Log "Finding device in DFU mode..."
|
||||||
while [[ $DFUDevice != 1 ]]; do
|
while [[ $DFUDevice != 1 ]]; do
|
||||||
[[ $($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-) == "DFU" ]] && DFUDevice=1
|
[[ $platform == linux ]] && [[ $(lsusb | grep -c '1227') == 1 ]] && DFUDevice=1
|
||||||
|
[[ $platform == macos ]] && [[ $($irecovery -q 2>/dev/null | grep 'MODE' | cut -c 7-) == "DFU" ]] && DFUDevice=1
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
Log "Found device in DFU mode."
|
Log "Found device in DFU mode."
|
||||||
kill $iproxyPID
|
kill $iproxyPID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user