mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 18:34:14 +01:00
Small change in pwnDFU check
This commit is contained in:
parent
e5633173e2
commit
492147eebc
@ -166,10 +166,9 @@ CheckM8() {
|
|||||||
cd ../..
|
cd ../..
|
||||||
elif [[ $pwnDFUTool == "iPwnder32" ]]; then
|
elif [[ $pwnDFUTool == "iPwnder32" ]]; then
|
||||||
$ipwnder32 -p
|
$ipwnder32 -p
|
||||||
pwnDFUDevice=$?
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $pwnDFUDevice != 0 ]]; then
|
if [[ $pwnDFUDevice != 0 && $($irecovery -q | grep -c "PWND") != 1 ]]; then
|
||||||
echo -e "\n${Color_R}[Error] Failed to enter pwnDFU mode. Please run the script again: ./restore.sh Downgrade ${Color_N}"
|
echo -e "\n${Color_R}[Error] Failed to enter pwnDFU mode. Please run the script again: ./restore.sh Downgrade ${Color_N}"
|
||||||
echo "${Color_Y}* This step may fail a lot, especially on Linux, and unfortunately there is nothing I can do about the low success rates. ${Color_N}"
|
echo "${Color_Y}* This step may fail a lot, especially on Linux, and unfortunately there is nothing I can do about the low success rates. ${Color_N}"
|
||||||
echo "${Color_Y}* The only option is to make sure you are using an Intel or M1 device, and to try multiple times ${Color_N}"
|
echo "${Color_Y}* The only option is to make sure you are using an Intel or M1 device, and to try multiple times ${Color_N}"
|
||||||
|
Loading…
Reference in New Issue
Block a user