Skip to content

Commit d74b4d2

Browse files
committed
Some fixes for creating iPod2,1 custom ipsws
1 parent 649c4f8 commit d74b4d2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

restore.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ ipsw_preference_set() {
24432443
4* ) ipsw_canjailbreak=1;;
24442444
esac
24452445
if [[ $device_type == "iPod2,1" && $device_newbr != 0 && $device_target_vers == "3.1.3" ]]; then
2446-
warn "New bootrom detected. Disabling jailbreak option"
2446+
warn "Assuming device is new bootrom. Disabling jailbreak option"
24472447
ipsw_canjailbreak=
24482448
ipsw_nojailbreak_message
24492449
fi
@@ -4826,15 +4826,17 @@ ipsw_prepare_custom() {
48264826
ipsw_prepare_jailbreak old
48274827

48284828
mv "$ipsw_custom.ipsw" temp.ipsw
4829-
if [[ $ipsw_24o == 1 ]]; then
4829+
if [[ $ipsw_24o == 1 ]]; then # old bootrom ipod2,1 3.1.3
48304830
ipsw_prepare_patchcomp LLB
48314831
mv temp.ipsw "$ipsw_custom.ipsw"
48324832
return
4833+
elif [[ $device_type == "iPod2,1" && $device_target_vers == "3.1.3" ]]; then # new bootrom ipod2,1 3.1.3
4834+
mv temp.ipsw "$ipsw_custom.ipsw"
4835+
return
48334836
fi
48344837

4835-
# 3GS
48364838
case $device_target_vers in
4837-
6.1.6 | 4.1 ) :;;
4839+
$device_latest_vers | 4.1 ) :;;
48384840
3.0* )
48394841
ipsw_prepare_patchcomp LLB
48404842
log "Patch Kernelcache"

0 commit comments

Comments
 (0)