From 5a1461b3df5a88bfaed9ce47c6cd7943b3559b12 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Tue, 31 May 2022 12:35:00 +0800 Subject: [PATCH] More fixes should be the last of them bugs? hopefully. --- resources/device.sh | 2 ++ resources/downgrade.sh | 10 ++++++---- resources/ipsw.sh | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/resources/device.sh b/resources/device.sh index c6aa99b..d039517 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -376,6 +376,7 @@ kDFU() { Log "Entering kDFU mode..." Echo "* Press TOP or HOME button when the device disconnects and its screen goes black" + Echo "* You may also try to unplug and replug your device" FindDevice "DFU" } @@ -502,6 +503,7 @@ EnterPwnREC() { sleep 3 FindDevice "Recovery" timeout [[ $? == 0 ]] && break + Echo "* You may also try to unplug and replug your device" ((Attempt++)) done diff --git a/resources/downgrade.sh b/resources/downgrade.sh index 89f9bc9..54145ce 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -45,11 +45,13 @@ FutureRestore() { cd .. fi - if [[ $DeviceProc == 7 && $platform != "win" ]]; then - # Send dummy file for device detection - $irecovery -f README.md - sleep 2 + if [[ $DeviceProc == 7 ]]; then ExtraArgs+=("-s" "$IPSWRestore/Firmware/all_flash/$SEP" "-m" "$BuildManifest") + if [[ $platform != "win" ]]; then + # Send dummy file for device detection + $irecovery -f README.md + sleep 2 + fi elif [[ $SendiBSS != 1 ]]; then ExtraArgs+=("--no-ibss") fi diff --git a/resources/ipsw.sh b/resources/ipsw.sh index 55b0788..23afb96 100755 --- a/resources/ipsw.sh +++ b/resources/ipsw.sh @@ -383,7 +383,7 @@ IPSW64() { cd $IPSW zip -rq0 ../$IPSWCustom.ipsw * cd .. - mv $IPSW $IPSWCustom + mv $IPSW/ $IPSWCustom/ if [[ ! -e $IPSWCustom.ipsw ]]; then Error "Failed to find custom IPSW. Please run the script again"