@@ -5796,11 +5796,7 @@ device_ramdisk64() {
57965796 fi
57975797 $irecovery -f $ramdisk_path /Kernelcache.img4
57985798 $irecovery -c bootx
5799- if [[ $platform == " macos" ]]; then
5800- print " * For some reason, macOS takes way too long to discover iOS devices on some Macs. You may need to wait for a while before it connects."
5801- print " * If it still does not work/recognize your device, try restarting your Mac before trying again."
5802- fi
5803- device_find_mode Restore 30
5799+ sleep 10
58045800
58055801 if [[ $ios8 == 1 ]]; then
58065802 device_iproxy no-logging 44
@@ -5811,6 +5807,13 @@ device_ramdisk64() {
58115807 fi
58125808 device_sshpass alpine
58135809
5810+ local found
5811+ log " Waiting for device..."
5812+ while [[ $found != 1 ]]; do
5813+ found=$( $ssh -p $ssh_port root@127.0.0.1 " echo 1" )
5814+ sleep 1
5815+ done
5816+
58145817 print " * Mount filesystems with this command (for iOS 11.3 and newer):"
58155818 print " /usr/bin/mount_filesystems"
58165819 print " * Mount filesystems with this command (for iOS 10.3.x):"
@@ -6043,27 +6046,24 @@ device_ramdisk() {
60436046 if [[ $1 == " justboot" ]]; then
60446047 log " Device should now boot."
60456048 return
6046- elif [[ -n $1 && $platform == " macos" ]]; then
6047- log " Booting, please wait..."
6048- print " * For some reason, macOS takes way too long to discover iOS devices on some Macs. You may need to wait for a while."
6049- print " * If it still does not work/recognize your device, try restarting your Mac before trying again."
6050- device_find_mode Restore 90
6051- device_iproxy
6052- elif [[ -n $1 ]]; then
6053- log " Booting, please wait..."
6054- device_find_mode Restore 30
6049+ fi
6050+ log " Booting, please wait..."
6051+ sleep 10
6052+
6053+ if [[ -n $1 ]]; then
60556054 device_iproxy
60566055 else
6057- log " Booting, please wait..."
6058- if [[ $platform == " macos" ]]; then
6059- print " * For some reason, macOS takes way too long to discover iOS devices on some Macs. You may need to wait for a while before it connects."
6060- print " * If it still does not work/recognize your device, try restarting your Mac before trying again."
6061- fi
6062- device_find_mode Restore 30
60636056 device_iproxy no-logging
60646057 fi
60656058 device_sshpass alpine
60666059
6060+ local found
6061+ log " Waiting for device..."
6062+ while [[ $found != 1 ]]; do
6063+ found=$( $ssh -p $ssh_port root@127.0.0.1 " echo 1" )
6064+ sleep 1
6065+ done
6066+
60676067 case $mode in
60686068 " activation" | " baseband" )
60696069 return
@@ -6081,7 +6081,7 @@ device_ramdisk() {
60816081
60826082 " getversion" )
60836083 device_ramdisk_iosvers
6084- log " Retrieved the current iOS version, rebooting device "
6084+ log " Retrieved the current iOS version"
60856085 if [[ -n $device_vers ]]; then
60866086 print " * iOS Version: $device_vers ($device_build )"
60876087 else
0 commit comments