mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Some 64-bit SSH changes
This commit is contained in:
parent
08a8ef0d14
commit
acb9532774
@ -168,7 +168,7 @@
|
||||
- [greenpois0n](https://github.com/OpenJailbreak/greenpois0n/tree/0f1eac8e748abb200fc36969e616aaad009f7ebf)
|
||||
- Some patches from [PwnageTool](https://www.theapplewiki.com/wiki/PwnageTool), [sn0wbreeze](https://www.theapplewiki.com/wiki/sn0wbreeze), [redsn0w](https://www.theapplewiki.com/wiki/redsn0w)
|
||||
- Some patches made using patchers from [Bundle-Creation](https://github.com/Merculous/Bundle-Creation)
|
||||
- SSH Ramdisk tars from [SSH-Ramdisk-Maker-and-Loader](https://github.com/Ralph0045/SSH-Ramdisk-Maker-and-Loader) and [msftguy's ssh-rd](https://github.com/msftguy/ssh-rd)
|
||||
- 64-bit SSH Ramdisk stuff is based on [SSHRD_Script](https://github.com/verygenericname/SSHRD_Script) (iOS 12+) and [iarchive.app](https://web.archive.org/web/20240324134204/https://ios7.iarchive.app/downgrade/making-ramdisk.html) (iOS 8)
|
||||
- SSH Ramdisk tars from Ralph0045's [SSH-Ramdisk-Maker-and-Loader](https://github.com/Ralph0045/SSH-Ramdisk-Maker-and-Loader) and msftguy's [ssh-rd](https://github.com/msftguy/ssh-rd)
|
||||
- 64-bit SSH Ramdisk stuff is based on Nathan's [SSHRD_Script](https://github.com/verygenericname/SSHRD_Script) (iOS 12+), and exploit3dguy's iram tar from [iarchive.app](https://web.archive.org/web/20240324134204/https://ios7.iarchive.app/downgrade/making-ramdisk.html) (iOS 8)
|
||||
- [img4lib](https://github.com/xerub/img4lib) - xerub
|
||||
- [img4tool](https://github.com/tihmstar/img4tool) - tihmstar
|
||||
|
27
restore.sh
27
restore.sh
@ -4317,12 +4317,16 @@ device_ramdisk64() {
|
||||
build_id="18C66"
|
||||
fi
|
||||
|
||||
if [[ $device_proc == 7 ]]; then
|
||||
if (( device_proc <= 8 )) && [[ $device_type != "iPad5,1" && $device_type != "iPad5,2" ]]; then
|
||||
local ver="12"
|
||||
if [[ $device_type == "iPad5"* ]]; then
|
||||
ver="14"
|
||||
fi
|
||||
print "* Version Selection"
|
||||
print "* The version of the SSH Ramdisk is set to iOS 12 by default. This is the recommended option."
|
||||
print "* There is also an option to use iOS 8 ramdisk. This is only for fixing devices on iOS 7 not booting after using iOS 12 ramdisk."
|
||||
print "* The version of the SSH Ramdisk is set to iOS $ver by default. This is the recommended option."
|
||||
print "* There is also an option to use iOS 8 ramdisk. This can be used to fix devices on iOS 7 not booting after using iOS $ver ramdisk."
|
||||
print "* If not sure, just press Enter/Return. This will select the default version."
|
||||
read -p "$(input "Select Y to use iOS 12, select N to use iOS 8 (Y/n) ")" opt
|
||||
read -p "$(input "Select Y to use iOS $ver, select N to use iOS 8 (Y/n) ")" opt
|
||||
if [[ $opt == 'n' || $opt == 'N' ]]; then
|
||||
ios8=1
|
||||
fi
|
||||
@ -4907,14 +4911,8 @@ menu_ramdisk() {
|
||||
fi
|
||||
if [[ $1 == "18C66" ]]; then
|
||||
menu_items+=("Install TrollStore")
|
||||
elif (( device_proc >= 7 )) && [[ $1 == "12"* ]]; then
|
||||
local top="TOP"
|
||||
if [[ $device_type == "iPhone7"* ]]; then
|
||||
top="SIDE"
|
||||
fi
|
||||
elif [[ $device_proc == 7 && $1 == "12"* ]]; then
|
||||
log "Ramdisk should now boot and fix iOS 7 not booting."
|
||||
print "* Wait for \"OK\" to show up on screen, then proceed to force restart the device by holding the $top and HOME buttons for about 15 seconds."
|
||||
return
|
||||
elif (( device_proc <= 8 )); then
|
||||
menu_items+=("Erase All (iOS 7 and 8)")
|
||||
fi
|
||||
@ -4954,6 +4952,13 @@ menu_ramdisk() {
|
||||
case $mode in
|
||||
"ssh" )
|
||||
log "Use the \"exit\" command to go back to SSH Ramdisk Menu"
|
||||
if (( device_proc >= 7 )) && [[ $1 == "12"* ]]; then
|
||||
$ssh -p $ssh_port root@127.0.0.1 &
|
||||
ssh_pid=$!
|
||||
sleep 1
|
||||
kill $ssh_pid
|
||||
killall ssh
|
||||
fi
|
||||
$ssh -p $ssh_port root@127.0.0.1
|
||||
;;
|
||||
"reboot" ) $ssh -p $ssh_port root@127.0.0.1 "$reboot"; loop=1;;
|
||||
|
Loading…
Reference in New Issue
Block a user