@@ -7198,12 +7198,10 @@ menu_restore() {
71987198 esac
71997199 menu_items+=(" Other (powdersn0w $text2 blobs)" )
72007200 ;;
7201- iPhone1,[12] | iPhone2,1 | iPhone3,[23] | iPod[1234],1 )
7202- if [[ -z $1 ]]; then
7203- menu_items+=(" Other (Custom IPSW)" )
7204- fi
7205- ;;
72067201 esac
7202+ if (( device_proc < 5 )) ; then
7203+ menu_items+=(" Other (Custom IPSW)" )
7204+ fi
72077205 if [[ $device_proc != 1 ]]; then
72087206 if [[ $device_type != " iPod2,1" ]] && (( device_proc <= 10 )) ; then
72097207 menu_items+=(" Other (Use SHSH Blobs)" )
@@ -7264,7 +7262,7 @@ menu_restore() {
72647262 case $selected in
72657263 " " ) : ;;
72667264 " Go Back" ) back=1;;
7267- " Other (Custom IPSW)" ) mode= " customipsw " ;;
7265+ " Other (Custom IPSW)" ) restore_customipsw_confirm ;;
72687266 " DFU IPSW" )
72697267 if [[ $1 == " ipsw" ]]; then
72707268 mode=" dfuipswipsw"
@@ -7984,7 +7982,7 @@ menu_ipsw_browse() {
79847982 [6543]* ) versionc=" $1 " ;;
79857983 " custom" ) text=" Custom" ;;
79867984 esac
7987- if [[ $versionc == " $device_latest_vers " ]]; then
7985+ if [[ $versionc == " $device_latest_vers " || $1 == " custom " ]]; then
79887986 menu_items=()
79897987 elif [[ -n $versionc ]]; then
79907988 menu_items=($( ls ../${device_type} _${versionc} * Restore.ipsw 2> /dev/null) )
@@ -8653,8 +8651,8 @@ device_jailbreak_confirm() {
86538651 return
86548652 ;;
86558653 9* )
8656- print " * For this version, you can also use HomeDepot and sideload it to your device."
8657- print " * https://ios.cfw.guide/installing-homedepot /"
8654+ print " * For this version, you can also use JailbreakMe 4.0 to jailbreak your device."
8655+ print " * https://lukezgd.github.io/jbme4 /"
86588656 print " * You may still continue if you really want to do the ramdisk method instead."
86598657 ;;
86608658 10* )
@@ -8974,14 +8972,14 @@ device_reverthacktivate() {
89748972 log " Done. Your device should reboot now"
89758973}
89768974
8977- restore_customipsw () {
8975+ restore_customipsw_confirm () {
89788976 print " * You are about to restore with a custom IPSW."
89798977 print " * This option is only for restoring with IPSWs NOT made with Legacy iOS Kit, like whited00r or GeekGrade."
89808978 if [[ $device_newbr == 1 ]]; then
89818979 warn " Your device is a new bootrom model and some custom IPSWs might not be compatible."
89828980 print " * For iPhone 3GS, after restoring you will need to go to Other Utilities -> Install alloc8 Exploit"
89838981 else
8984- warn " Do NOT use this option for powdersn0w or jailbreak IPSWs with Legacy iOS Kit!"
8982+ warn " Do NOT use this option for powdersn0w or jailbreak IPSWs made with Legacy iOS Kit!"
89858983 fi
89868984 if [[ $platform == " macos" ]] && [[ $device_type == " iPod2,1" || $device_proc == 1 ]]; then
89878985 echo
@@ -8996,7 +8994,14 @@ restore_customipsw() {
89968994 print " * For iPhone 2G/3G, the second restore may fail due to baseband."
89978995 print " * You can exit recovery mode after by going to: Main Menu -> Exit Recovery Mode"
89988996 fi
8999- pause
8997+ read -p " $( input " Select Y to continue, N to go back (y/N) " ) " opt
8998+ if [[ $opt != ' Y' && $opt != ' y' ]]; then
8999+ return
9000+ fi
9001+ mode=" customipsw"
9002+ }
9003+
9004+ restore_customipsw () {
90009005 menu_ipsw_browse " custom"
90019006 if [[ -z $ipsw_path ]]; then
90029007 error " No IPSW selected, cannot continue."
0 commit comments