Skip to content

Commit f94a55b

Browse files
committed
some fixes regarding #1119
1 parent cbdfcff commit f94a55b

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

restore.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2932,10 +2932,7 @@ ipsw_preference_set() {
29322932
print "* When this option is enabled, your device will be jailbroken on restore."
29332933
print "* I recommend to enable this option to have the jailbreak and Cydia pre-installed."
29342934
print "* This option is enabled by default (Y). Select this option if unsure."
2935-
if [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* && $device_target_tethered != 1 ]]; then
2936-
warn "This will be a semi-tethered jailbreak. checkm8-a5 is required to boot to a jailbroken state."
2937-
print "* To boot jailbroken later, go to: Main Menu -> Just Boot"
2938-
elif [[ $device_type == "iPhone3,3" ]]; then
2935+
if [[ $device_type == "iPhone3,3" ]]; then
29392936
case $device_target_vers in
29402937
4.2.9 | 4.2.10 )
29412938
warn "This will be a semi-tethered jailbreak."
@@ -4385,6 +4382,9 @@ patch_iboot() {
43854382
mv $iboot_name iBoot.orig
43864383
"$dir/xpwntool" iBoot.orig iBoot.dec -iv $iboot_iv -k $iboot_key
43874384
"$dir/iBoot32Patcher" iBoot.dec iBoot.pwned $rsa "$@"
4385+
if [[ ! -s iBoot.pwned ]]; then
4386+
error "Failed to patch iBoot."
4387+
fi
43884388
"$dir/xpwntool" iBoot.pwned iBoot -t iBoot.orig
43894389
if [[ $device_type == "iPad1,1" || $device_type == "iPhone5,"* ]]; then
43904390
# ibec
@@ -4536,7 +4536,7 @@ ipsw_prepare_ios4multipart() {
45364536
local ExtraArr=("--boot-partition" "--boot-ramdisk" "--logo4")
45374537
case $device_target_vers in
45384538
4.2.9 | 4.2.10 ) :;;
4539-
* ) ExtraArr+=("--433");;
4539+
* ) [[ $device_proc != 5 ]] && ExtraArr+=("--433");;
45404540
esac
45414541
local bootargs="$device_bootargs_default"
45424542
if [[ $ipsw_verbose == 1 ]]; then
@@ -6709,7 +6709,10 @@ ipsw_prepare() {
67096709
elif [[ $device_target_tethered == 1 ]]; then
67106710
ipsw_prepare_tethered
67116711
elif [[ $device_target_powder == 1 ]]; then
6712-
ipsw_prepare_powder
6712+
case $device_target_vers in
6713+
4.3* ) ipsw_prepare_ios4powder;;
6714+
* ) ipsw_prepare_powder;;
6715+
esac
67136716
elif [[ $device_target_vers != "$device_latest_vers" || $ipsw_gasgauge_patch == 1 ]]; then
67146717
ipsw_prepare_32bit
67156718
fi

0 commit comments

Comments
 (0)