@@ -1568,7 +1568,7 @@ device_dfuhelper() {
15681568 return
15691569 fi
15701570 print " * Get ready..."
1571- for i in {03..01 }; do
1571+ for i in {3..1 }; do
15721572 echo -n " $i "
15731573 sleep 1
15741574 done
@@ -2761,7 +2761,7 @@ ipsw_verify() {
27612761
27622762 if [[ $IPSWSHA1L != " $IPSWSHA1 " ]]; then
27632763 rm " $device_fw_dir /$build_id /sha1sum"
2764- if [[ -z $3 ]]; then
2764+ if [[ $1 != " nopause " ]]; then
27652765 log " SHA1sum mismatch. Expected $IPSWSHA1 , got $IPSWSHA1L "
27662766 warn " Verifying IPSW failed. Your IPSW may be corrupted or incomplete. Make sure to download and select the correct IPSW."
27672767 pause
@@ -6079,19 +6079,25 @@ device_ramdisk() {
60796079 return
60806080 ;;
60816081
6082- " jailbreak" | " getversion" )
6082+ " getversion" )
6083+ device_ramdisk_iosvers
6084+ log " Retrieved the current iOS version, rebooting device"
6085+ if [[ -n $device_vers ]]; then
6086+ print " * iOS Version: $device_vers ($device_build )"
6087+ else
6088+ warn " Something wrong happened. Failed to get iOS version."
6089+ fi
6090+ log " Done. Proceeding to SSH Ramdisk Menu. You may reboot from there or do other stuff if needed."
6091+ pause
6092+ ;;
6093+
6094+ " jailbreak" )
60836095 local vers
60846096 local build
60856097 local untether
60866098 device_ramdisk_iosvers
60876099 vers=$device_vers
60886100 build=$device_build
6089- if [[ $1 == " getversion" && -n $vers ]]; then
6090- log " Retrieved the current iOS version, rebooting device"
6091- print " * iOS Version: $vers ($build )"
6092- $ssh -p $ssh_port root@127.0.0.1 " reboot_bak"
6093- return
6094- fi
60956101 case $vers in
60966102 9.3.[4231] | 9.3 ) untether=" untetherhomedepot.tar" ;;
60976103 9.2* | 9.1 ) untether=" untetherhomedepot921.tar" ;;
@@ -6218,12 +6224,14 @@ device_ramdisk() {
62186224 " clearnvram" )
62196225 log " Sending command for clearing NVRAM..."
62206226 $ssh -p $ssh_port root@127.0.0.1 " nvram -c"
6221- log " Done. Proceeding to SSH Ramdisk Menu. You may reboot from there."
6227+ log " Done. Proceeding to SSH Ramdisk Menu. You may reboot from there or do other stuff if needed."
6228+ pause
62226229 ;;
62236230
62246231 " setnvram" )
62256232 device_ramdisk_setnvram
6226- log " Done. Proceeding to SSH Ramdisk Menu. You may reboot from there."
6233+ log " Done. Proceeding to SSH Ramdisk Menu. You may reboot from there or do other stuff if needed."
6234+ pause
62276235 ;;
62286236
62296237 * ) log " Device should now boot to SSH ramdisk mode." ;;
@@ -6305,14 +6313,16 @@ device_ramdisk_ios3exploit() {
63056313device_datetime_cmd () {
63066314 log " Running command to Update DateTime"
63076315 $ssh -p $ssh_port root@127.0.0.1 " date -s @$( date +%s) "
6308- log " Done"
6309- pause
6316+ if [[ $1 != " nopause" ]]; then
6317+ log " Done"
6318+ pause
6319+ fi
63106320}
63116321
63126322device_ramdisk_iosvers () {
63136323 device_vers=
63146324 device_build=
6315- device_datetime_cmd
6325+ device_datetime_cmd nopause
63166326 if (( device_proc < 7 )) ; then
63176327 log " Mounting root filesystem"
63186328 $ssh -p $ssh_port root@127.0.0.1 " mount.sh root"
@@ -8548,7 +8558,7 @@ menu_usefulutilities() {
85488558 while [[ -z " $mode " && -z " $back " ]]; do
85498559 menu_items=()
85508560 if [[ $device_proc != 1 ]] && (( device_proc < 7 )) ; then
8551- if [[ $device_mode == " Normal" ]]; then
8561+ if [[ $device_mode == " Normal" && $device_type != " iPod2,1 " ]]; then
85528562 menu_items+=(" Enter kDFU Mode" )
85538563 fi
85548564 case $device_proc in
0 commit comments