From cc4c38ca40ecb281e79ff3c36cddb70998b89500 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Fri, 3 Sep 2021 12:09:33 +0800 Subject: [PATCH] Update pwnD again --- resources/device.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/device.sh b/resources/device.sh index 0e313ac..e45e0a4 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -174,7 +174,6 @@ CheckM8() { $rmsigchks pwnDFUDevice=$? cd ../.. - pwnD=$($irecovery -q | grep -c "PWND") else cd ../.. Log "Sending iBSS..." @@ -185,6 +184,7 @@ CheckM8() { $ipwnder32 -p pwnDFUDevice=$? fi + [[ $DeviceProc == 7 ]] && pwnD=$($irecovery -q | grep -c "PWND") if [[ $pwnDFUDevice != 0 && $pwnD != 1 ]]; then echo -e "\n${Color_R}[Error] Failed to enter pwnDFU mode. Please run the script again: ./restore.sh Downgrade ${Color_N}"