Skip to content

Commit

Permalink
Some fixes for creating iPod2,1 custom ipsws
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Feb 4, 2025
1 parent 649c4f8 commit d74b4d2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit d74b4d2

Please sign in to comment.