diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBSS.m68ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBSS.m68ap.RELEASE.patch index f3b5e15..f5979c0 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBSS.m68ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBSS.m68ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBoot.m68ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBoot.m68ap.RELEASE.patch index d9dba91..0474ce9 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBoot.m68ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/iBoot.m68ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/restoredexternal.patch new file mode 100644 index 0000000..41a8c4a Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone1,1_3.1.3_7E18.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBSS.n82ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBSS.n82ap.RELEASE.patch index c20e518..f354951 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBSS.n82ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBSS.n82ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBoot.n82ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBoot.n82ap.RELEASE.patch index e24edf3..37ca174 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBoot.n82ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/iBoot.n82ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/restoredexternal.patch new file mode 100644 index 0000000..41a8c4a Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_3.1.3_7E18.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/asr.patch index 8453f7e..6a32b3a 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/asr.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBSS.n82ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBSS.n82ap.RELEASE.patch index 46a63ad..2586778 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBSS.n82ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBSS.n82ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBoot.n82ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBoot.n82ap.RELEASE.patch index 9141aa6..7159703 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBoot.n82ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/iBoot.n82ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/kernelcache.release.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/kernelcache.release.patch index 9ae60a9..32b52cd 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/kernelcache.release.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.1_8B117.bundle/kernelcache.release.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBSS.n82ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBSS.n82ap.RELEASE.patch index f80fcf5..b80a801 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBSS.n82ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBSS.n82ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBoot.n82ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBoot.n82ap.RELEASE.patch index c4609c9..4219684 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBoot.n82ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPhone1,2_4.2.1_8C148.bundle/iBoot.n82ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.10_8E600.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.10_8E600.bundle/asr.patch index 6d0481e..e267da5 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.10_8E600.bundle/asr.patch and b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.10_8E600.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.6_8E200.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.6_8E200.bundle/asr.patch index e3f267a..e267da5 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.6_8E200.bundle/asr.patch and b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.6_8E200.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.7_8E303.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.7_8E303.bundle/asr.patch index 6d0481e..e267da5 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.7_8E303.bundle/asr.patch and b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.7_8E303.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.8_8E401.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.8_8E401.bundle/asr.patch index 6d0481e..e267da5 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.8_8E401.bundle/asr.patch and b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.8_8E401.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.9_8E501.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.9_8E501.bundle/asr.patch index 6d0481e..e267da5 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.9_8E501.bundle/asr.patch and b/resources/firmware/FirmwareBundles/Down_iPhone3,3_4.2.9_8E501.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBSS.n45ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBSS.n45ap.RELEASE.patch index d7e0e06..561c7d8 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBSS.n45ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBSS.n45ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBoot.n45ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBoot.n45ap.RELEASE.patch index 7b17746..1477764 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBoot.n45ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/iBoot.n45ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/restoredexternal.patch new file mode 100644 index 0000000..41a8c4a Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPod1,1_3.1.3_7E18.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C145.bundle/iBSS.n18ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C145.bundle/iBSS.n18ap.RELEASE.patch index b4c7a92..13db8b9 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C145.bundle/iBSS.n18ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C145.bundle/iBSS.n18ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C146.bundle/iBSS.n18ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C146.bundle/iBSS.n18ap.RELEASE.patch index b4c7a92..13db8b9 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C146.bundle/iBSS.n18ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.1_7C146.bundle/iBSS.n18ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.2_7D11.bundle/iBSS.n18ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.2_7D11.bundle/iBSS.n18ap.RELEASE.patch index a28bbe6..13db8b9 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.2_7D11.bundle/iBSS.n18ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.2_7D11.bundle/iBSS.n18ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.3_7E18.bundle/iBSS.n18ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.3_7E18.bundle/iBSS.n18ap.RELEASE.patch index 712d498..f2d9f3f 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.3_7E18.bundle/iBSS.n18ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod3,1_3.1.3_7E18.bundle/iBSS.n18ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/iBSS.n81ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/iBSS.n81ap.RELEASE.patch index 7c33911..9c2b14a 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/iBSS.n81ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/iBSS.n81ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/restoredexternal.patch deleted file mode 100644 index 9645a8c..0000000 Binary files a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B117.bundle/restoredexternal.patch and /dev/null differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/iBSS.n81ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/iBSS.n81ap.RELEASE.patch index 7c33911..9c2b14a 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/iBSS.n81ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/iBSS.n81ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/restoredexternal.patch deleted file mode 100644 index 9645a8c..0000000 Binary files a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.1_8B118.bundle/restoredexternal.patch and /dev/null differ diff --git a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.3.3_8J2.bundle/iBSS.n81ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.3.3_8J2.bundle/iBSS.n81ap.RELEASE.patch index 795446d..dcb8140 100644 Binary files a/resources/firmware/FirmwareBundles/Down_iPod4,1_4.3.3_8J2.bundle/iBSS.n81ap.RELEASE.patch and b/resources/firmware/FirmwareBundles/Down_iPod4,1_4.3.3_8J2.bundle/iBSS.n81ap.RELEASE.patch differ diff --git a/resources/jailbreak/greenpois0n/iPhone1,1_7E18.tar b/resources/jailbreak/greenpois0n/iPhone1,1_7E18.tar new file mode 100644 index 0000000..9750152 Binary files /dev/null and b/resources/jailbreak/greenpois0n/iPhone1,1_7E18.tar differ diff --git a/resources/jailbreak/greenpois0n/iPhone1,2_7E18.tar b/resources/jailbreak/greenpois0n/iPhone1,2_7E18.tar new file mode 100644 index 0000000..ea90d03 Binary files /dev/null and b/resources/jailbreak/greenpois0n/iPhone1,2_7E18.tar differ diff --git a/resources/jailbreak/greenpois0n/iPhone1,2_8A293.tar b/resources/jailbreak/greenpois0n/iPhone1,2_8A293.tar new file mode 100644 index 0000000..be466f8 Binary files /dev/null and b/resources/jailbreak/greenpois0n/iPhone1,2_8A293.tar differ diff --git a/resources/jailbreak/greenpois0n/iPhone1,2_8A306.tar b/resources/jailbreak/greenpois0n/iPhone1,2_8A306.tar new file mode 100644 index 0000000..8d003e4 Binary files /dev/null and b/resources/jailbreak/greenpois0n/iPhone1,2_8A306.tar differ diff --git a/resources/jailbreak/greenpois0n/iPhone1,2_8A400.tar b/resources/jailbreak/greenpois0n/iPhone1,2_8A400.tar new file mode 100644 index 0000000..a48d4bc Binary files /dev/null and b/resources/jailbreak/greenpois0n/iPhone1,2_8A400.tar differ diff --git a/resources/jailbreak/greenpois0n/iPod1,1_7E18.tar b/resources/jailbreak/greenpois0n/iPod1,1_7E18.tar new file mode 100644 index 0000000..c191051 Binary files /dev/null and b/resources/jailbreak/greenpois0n/iPod1,1_7E18.tar differ diff --git a/restore.sh b/restore.sh index c8654fa..85a4eeb 100755 --- a/restore.sh +++ b/restore.sh @@ -1993,33 +1993,32 @@ ipsw_prepare_jailbreak() { case $device_target_vers in 6.1.[3456] ) JBFiles+=("p0sixspwn.tar");; 6* ) JBFiles+=("evasi0n6-untether.tar");; - 4.2.1 | 4.1 | 4.0* | 3.1.3 ) + 4.2.1 ) JBFiles[0]="fstab_old.tar";; + 4.1 | 4.0* | 3.1.3 ) JBFiles[0]="fstab_old.tar" - if [[ $device_proc != 1 ]]; then - JBFiles+=("greenpois0n/${device_type}_${device_target_build}.tar") - fi + JBFiles+=("greenpois0n/${device_type}_${device_target_build}.tar") ;; 5* | 4.3* | 4.2* ) JBFiles+=("g1lbertJB/${device_type}_${device_target_build}.tar");; esac for i in {0..1}; do JBFiles[i]=$jelbrek/${JBFiles[$i]} done - if [[ $device_proc != 1 ]]; then - case $device_target_vers in - 4.3* ) - JBFiles[2]=$jelbrek/${JBFiles[2]} - if [[ $device_type == "iPad2"* ]]; then - JBFiles[2]= - fi - ;; - 4.2.1 ) + case $device_target_vers in + 4.3* ) + JBFiles[2]=$jelbrek/${JBFiles[2]} + if [[ $device_type == "iPad2"* ]]; then + JBFiles[2]= + fi + ;; + 4.2.1 ) + if [[ $device_type != "iPhone1,2" ]]; then ExtraArgs+="-punchd" - JBFiles[2]=$jelbrek/${JBFiles[2]} - ;; - 3.1 | 3.1.[12] ) JBFiles[0]="$jelbrek/fstab_old.tar";; - * ) JBFiles[2]=$jelbrek/${JBFiles[2]};; - esac - fi + JBFiles[2]=$jelbrek/greenpois0n/${device_type}_${device_target_build}.tar + fi + ;; + 3.1 | 3.1.[12] ) JBFiles[0]="$jelbrek/fstab_old.tar";; + * ) JBFiles[2]=$jelbrek/${JBFiles[2]};; + esac if [[ $device_target_vers == "4"* || $device_target_vers == "5"* ]]; then JBFiles+=("$jelbrek/cydiasubstrate.tar") fi @@ -2087,12 +2086,12 @@ ipsw_prepare_keys() { name="$getcomp.${device_model}ap.RELEASE.dfu" fi echo -e "$compFileFirmware/dfu/$nameIV$ivKey$key" >> $NewPlist - if [[ -s $FirmwareBundle/$comp.${device_model}ap.RELEASE.patch ]]; then + if [[ $ipsw_prepare_usepowder == 1 ]]; then + echo -e "Patch" >> $NewPlist + elif [[ -s $FirmwareBundle/$comp.${device_model}ap.RELEASE.patch ]]; then echo -e "Patch$comp.${device_model}ap.RELEASE.patch" >> $NewPlist elif [[ -s $FirmwareBundle/$comp.${device_model}.RELEASE.patch ]]; then echo -e "Patch$comp.${device_model}.RELEASE.patch" >> $NewPlist - else - echo -e "Patch" >> $NewPlist fi ;; @@ -2115,10 +2114,10 @@ ipsw_prepare_keys() { "KernelCache" ) echo -e "$compFile$nameIV$ivKey$keyDecryptPathDowngrade/$comp" >> $NewPlist - if [[ -e $FirmwareBundle/kernelcache.release.patch ]]; then - echo -e "Patchkernelcache.release.patch" >> $NewPlist - else + if [[ $ipsw_prepare_usepowder == 1 ]]; then echo -e "Patch" >> $NewPlist + elif [[ -e $FirmwareBundle/kernelcache.release.patch ]]; then + echo -e "Patchkernelcache.release.patch" >> $NewPlist fi ;; @@ -2338,6 +2337,8 @@ ipsw_prepare_bundle() { 9* ) printf "9" >> $NewPlist;; esac echo -e "" >> $NewPlist + elif [[ $ipsw_prepare_usepowder == 1 ]]; then + echo -e "FilesystemPackageRamdiskPackage" >> $NewPlist elif [[ -d $FirmwareBundle2 ]]; then cp $FirmwareBundle2/* $FirmwareBundle echo -e "RamdiskPatches" >> $NewPlist @@ -2356,8 +2357,6 @@ ipsw_prepare_bundle() { else echo -e "FilesystemPatches" >> $NewPlist # ipsw segfaults if this is missing lol fi - else - echo -e "FilesystemPackageRamdiskPackage" >> $NewPlist fi if [[ $1 == "base" ]]; then @@ -2368,10 +2367,10 @@ ipsw_prepare_bundle() { ipsw_prepare_keys RestoreRamdisk $1 echo -e "" >> $NewPlist else - if [[ -d $FirmwareBundle2 ]]; then - echo -e "FirmwarePatches" >> $NewPlist - else + if [[ $ipsw_prepare_usepowder == 1 ]]; then echo -e "Firmware" >> $NewPlist + else + echo -e "FirmwarePatches" >> $NewPlist fi ipsw_prepare_keys iBSS $1 # ios 4 and lower do not need ibec patches. the exception is the ipad lineup @@ -2495,6 +2494,7 @@ ipsw_prepare_32bit() { cp $jelbrek/daibutsu/bin.tar $jelbrek/daibutsu/untether.tar . ipsw_prepare_rebootsh fi + ipsw_prepare_usepowder=1 ipsw_prepare_bundle $daibutsu @@ -2901,6 +2901,7 @@ ipsw_prepare_ios4powder() { local ExtraArgs="-apticket $shsh_path" local ExtraArgs2="--boot-partition --boot-ramdisk --logo4 " local JBFiles=() + ipsw_prepare_usepowder=1 if [[ -e "$ipsw_custom.ipsw" ]]; then log "Found existing Custom IPSW. Skipping IPSW creation." @@ -2998,6 +2999,7 @@ ipsw_prepare_powder() { log "Found existing Custom IPSW. Skipping IPSW creation." return fi + ipsw_prepare_usepowder=1 ipsw_prepare_bundle target ipsw_prepare_bundle base @@ -4050,14 +4052,18 @@ device_ramdisk() { 9* | 8* ) device_send_rdtar fstab8.tar;; 7* ) device_send_rdtar fstab7.tar;; 6* ) device_send_rdtar fstab_rw.tar;; - 4.2.1 ) $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";; + 4.2.1 ) + if [[ $device_type != "iPhone1,2" ]]; then + $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd" + fi + ;; 5* | 4.3* | 4.2* ) untether="${device_type}_${build}.tar";; esac case $vers in 5* ) device_send_rdtar g1lbertJB.tar;; 4.2.1 | 4.1 | 4.0* | 3* ) untether="${device_type}_${build}.tar" - if [[ $device_type == "iPod2,1" ]]; then + if [[ $device_proc == 1 || $device_type == "iPod2,1" ]]; then $scp -P 2222 $jelbrek/fstab_old root@127.0.0.1:/mnt1/private/etc/fstab else $scp -P 2222 $jelbrek/fstab_new root@127.0.0.1:/mnt1/private/etc/fstab @@ -4258,7 +4264,7 @@ menu_main() { menu_items+=("Restore/Downgrade") if [[ $device_type == "iPad2"* && $device_vers == "4"* ]]; then : - elif (( device_proc < 7 )) && [[ $device_proc != 1 ]]; then + elif (( device_proc < 7 )); then menu_items+=("Jailbreak Device") fi fi @@ -4480,7 +4486,7 @@ menu_restore() { case $device_type in iPhone4,1 | iPhone5,[1234] | iPad2,4 | iPad3,[456] | iPod5,1 ) menu_items+=("Other (powdersn0w 7.x blobs)");; - iPhone1,[12] | iPhone2,1 | iPod[12],1 ) + iPhone1,[12] | iPhone2,1 | iPod[1234],1 ) if [[ -z $1 ]]; then menu_items+=("Other (Custom IPSW)") fi