From d74b4d2030580a4cf329e71f5242a42ebdf2a614 Mon Sep 17 00:00:00 2001 From: LukeeGD <26163116+LukeZGD@users.noreply.github.com> Date: Tue, 4 Feb 2025 22:17:12 +0800 Subject: [PATCH] Some fixes for creating iPod2,1 custom ipsws --- restore.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/restore.sh b/restore.sh index e8bc9bc..047b5fd 100755 --- a/restore.sh +++ b/restore.sh @@ -2443,7 +2443,7 @@ ipsw_preference_set() { 4* ) ipsw_canjailbreak=1;; esac if [[ $device_type == "iPod2,1" && $device_newbr != 0 && $device_target_vers == "3.1.3" ]]; then - warn "New bootrom detected. Disabling jailbreak option" + warn "Assuming device is new bootrom. Disabling jailbreak option" ipsw_canjailbreak= ipsw_nojailbreak_message fi @@ -4826,15 +4826,17 @@ ipsw_prepare_custom() { ipsw_prepare_jailbreak old mv "$ipsw_custom.ipsw" temp.ipsw - if [[ $ipsw_24o == 1 ]]; then + if [[ $ipsw_24o == 1 ]]; then # old bootrom ipod2,1 3.1.3 ipsw_prepare_patchcomp LLB mv temp.ipsw "$ipsw_custom.ipsw" return + elif [[ $device_type == "iPod2,1" && $device_target_vers == "3.1.3" ]]; then # new bootrom ipod2,1 3.1.3 + mv temp.ipsw "$ipsw_custom.ipsw" + return fi - # 3GS case $device_target_vers in - 6.1.6 | 4.1 ) :;; + $device_latest_vers | 4.1 ) :;; 3.0* ) ipsw_prepare_patchcomp LLB log "Patch Kernelcache"