mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-25 06:31:14 +01:00
Change way of finding device in SSH ramdisk mode
This commit is contained in:
parent
1c2cd84218
commit
dae4292ca4
42
restore.sh
42
restore.sh
@ -5796,11 +5796,7 @@ device_ramdisk64() {
|
|||||||
fi
|
fi
|
||||||
$irecovery -f $ramdisk_path/Kernelcache.img4
|
$irecovery -f $ramdisk_path/Kernelcache.img4
|
||||||
$irecovery -c bootx
|
$irecovery -c bootx
|
||||||
if [[ $platform == "macos" ]]; then
|
sleep 10
|
||||||
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
|
|
||||||
|
|
||||||
if [[ $ios8 == 1 ]]; then
|
if [[ $ios8 == 1 ]]; then
|
||||||
device_iproxy no-logging 44
|
device_iproxy no-logging 44
|
||||||
@ -5811,6 +5807,13 @@ device_ramdisk64() {
|
|||||||
fi
|
fi
|
||||||
device_sshpass alpine
|
device_sshpass alpine
|
||||||
|
|
||||||
|
local found
|
||||||
|
log "Waiting for device..."
|
||||||
|
while [[ $found != 1 ]]; do
|
||||||
|
found=$($ssh -p $ssh_port root@127.0.0.1 "echo 1")
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
print "* Mount filesystems with this command (for iOS 11.3 and newer):"
|
print "* Mount filesystems with this command (for iOS 11.3 and newer):"
|
||||||
print " /usr/bin/mount_filesystems"
|
print " /usr/bin/mount_filesystems"
|
||||||
print "* Mount filesystems with this command (for iOS 10.3.x):"
|
print "* Mount filesystems with this command (for iOS 10.3.x):"
|
||||||
@ -6043,27 +6046,24 @@ device_ramdisk() {
|
|||||||
if [[ $1 == "justboot" ]]; then
|
if [[ $1 == "justboot" ]]; then
|
||||||
log "Device should now boot."
|
log "Device should now boot."
|
||||||
return
|
return
|
||||||
elif [[ -n $1 && $platform == "macos" ]]; then
|
fi
|
||||||
log "Booting, please wait..."
|
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."
|
sleep 10
|
||||||
print "* If it still does not work/recognize your device, try restarting your Mac before trying again."
|
|
||||||
device_find_mode Restore 90
|
if [[ -n $1 ]]; then
|
||||||
device_iproxy
|
|
||||||
elif [[ -n $1 ]]; then
|
|
||||||
log "Booting, please wait..."
|
|
||||||
device_find_mode Restore 30
|
|
||||||
device_iproxy
|
device_iproxy
|
||||||
else
|
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
|
device_iproxy no-logging
|
||||||
fi
|
fi
|
||||||
device_sshpass alpine
|
device_sshpass alpine
|
||||||
|
|
||||||
|
local found
|
||||||
|
log "Waiting for device..."
|
||||||
|
while [[ $found != 1 ]]; do
|
||||||
|
found=$($ssh -p $ssh_port root@127.0.0.1 "echo 1")
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
case $mode in
|
case $mode in
|
||||||
"activation" | "baseband" )
|
"activation" | "baseband" )
|
||||||
return
|
return
|
||||||
@ -6081,7 +6081,7 @@ device_ramdisk() {
|
|||||||
|
|
||||||
"getversion" )
|
"getversion" )
|
||||||
device_ramdisk_iosvers
|
device_ramdisk_iosvers
|
||||||
log "Retrieved the current iOS version, rebooting device"
|
log "Retrieved the current iOS version"
|
||||||
if [[ -n $device_vers ]]; then
|
if [[ -n $device_vers ]]; then
|
||||||
print "* iOS Version: $device_vers ($device_build)"
|
print "* iOS Version: $device_vers ($device_build)"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user