From 41b22d2bfb133f893adc335cd510a57334c15c95 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Fri, 12 Jan 2024 08:11:52 +0800 Subject: [PATCH] Address #383 and #384 --- restore.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index 8869fa5d..c1daae52 100755 --- a/restore.sh +++ b/restore.sh @@ -265,8 +265,8 @@ set_tool_paths() { iproxy="$dir/iproxy" irecovery+="$dir/irecovery" if [[ $platform == "macos" ]]; then - local ideviceinfot="$(which ideviceinfo 2>/dev/null)" - local irecoveryt="$(which irecovery 2>/dev/null)" + #local ideviceinfot="$(which ideviceinfo 2>/dev/null)" + #local irecoveryt="$(which irecovery 2>/dev/null)" if [[ -n $ideviceinfot && -n $irecoveryt ]]; then log "Detected libimobiledevice and libirecovery from Homebrew/MacPorts" ideviceenterrecovery="$(which ideviceenterrecovery)" @@ -5307,6 +5307,12 @@ restore_customipsw() { if [[ -z $ipsw_path ]]; then error "No IPSW selected, cannot continue." fi + if [[ $device_proc == 1 ]]; then + print "* Note that you might need to restore twice, due to NOR flash." + print "* For iPhone 2G/3G, the second restore may fail due to baseband." + print "* You can exit recovery mode after by going to: Other Utilities -> Exit Recovery Mode" + pause + fi if [[ $device_proc == 1 ]]; then device_enter_mode WTFreal else