-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change way of finding device in SSH ramdisk mode
- Loading branch information
Showing
1 changed file
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5796,11 +5796,7 @@ device_ramdisk64() { | |
fi | ||
$irecovery -f $ramdisk_path/Kernelcache.img4 | ||
$irecovery -c bootx | ||
if [[ $platform == "macos" ]]; then | ||
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." | ||
print "* If it still does not work/recognize your device, try restarting your Mac before trying again." | ||
fi | ||
device_find_mode Restore 30 | ||
sleep 10 | ||
|
||
if [[ $ios8 == 1 ]]; then | ||
device_iproxy no-logging 44 | ||
|
@@ -5811,6 +5807,13 @@ device_ramdisk64() { | |
fi | ||
device_sshpass alpine | ||
|
||
local found | ||
log "Waiting for device..." | ||
while [[ $found != 1 ]]; do | ||
found=$($ssh -p $ssh_port [email protected] "echo 1") | ||
sleep 1 | ||
done | ||
|
||
print "* Mount filesystems with this command (for iOS 11.3 and newer):" | ||
print " /usr/bin/mount_filesystems" | ||
print "* Mount filesystems with this command (for iOS 10.3.x):" | ||
|
@@ -6043,27 +6046,24 @@ device_ramdisk() { | |
if [[ $1 == "justboot" ]]; then | ||
log "Device should now boot." | ||
return | ||
elif [[ -n $1 && $platform == "macos" ]]; then | ||
log "Booting, please wait..." | ||
print "* For some reason, macOS takes way too long to discover iOS devices on some Macs. You may need to wait for a while." | ||
print "* If it still does not work/recognize your device, try restarting your Mac before trying again." | ||
device_find_mode Restore 90 | ||
device_iproxy | ||
elif [[ -n $1 ]]; then | ||
log "Booting, please wait..." | ||
device_find_mode Restore 30 | ||
fi | ||
log "Booting, please wait..." | ||
sleep 10 | ||
|
||
if [[ -n $1 ]]; then | ||
device_iproxy | ||
else | ||
log "Booting, please wait..." | ||
if [[ $platform == "macos" ]]; then | ||
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." | ||
print "* If it still does not work/recognize your device, try restarting your Mac before trying again." | ||
fi | ||
device_find_mode Restore 30 | ||
device_iproxy no-logging | ||
fi | ||
device_sshpass alpine | ||
|
||
local found | ||
log "Waiting for device..." | ||
while [[ $found != 1 ]]; do | ||
found=$($ssh -p $ssh_port [email protected] "echo 1") | ||
sleep 1 | ||
done | ||
|
||
case $mode in | ||
"activation" | "baseband" ) | ||
return | ||
|
@@ -6081,7 +6081,7 @@ device_ramdisk() { | |
|
||
"getversion" ) | ||
device_ramdisk_iosvers | ||
log "Retrieved the current iOS version, rebooting device" | ||
log "Retrieved the current iOS version" | ||
if [[ -n $device_vers ]]; then | ||
print "* iOS Version: $device_vers ($device_build)" | ||
else | ||
|