Update restore.sh

This commit is contained in:
LukeZGD 2024-04-23 19:27:10 +08:00
parent c107705cf2
commit 5c8848360e

View File

@ -3812,7 +3812,7 @@ restore_futurerestore() {
fi fi
if (( device_proc < 7 )); then if (( device_proc < 7 )); then
futurerestore2+="_old" futurerestore2+="_old"
elif [[ $device_latest_vers == "15"* ]]; then elif [[ $device_latest_vers == "15"* || $device_latest_vers == "16"* ]]; then
futurerestore2="../saved/futurerestore_$platform" futurerestore2="../saved/futurerestore_$platform"
ExtraArr=("--latest-sep") ExtraArr=("--latest-sep")
if [[ $restore_baseband == 0 ]]; then if [[ $restore_baseband == 0 ]]; then
@ -3881,7 +3881,7 @@ restore_futurerestore() {
restore_latest() { restore_latest() {
local idevicerestore2="$idevicerestore" local idevicerestore2="$idevicerestore"
local ExtraArgs="-e" local ExtraArgs="-e"
if [[ $device_latest_vers == "12"* || $device_latest_vers == "15"* ]]; then if [[ $device_latest_vers == "12"* || $device_latest_vers == "15"* || $device_latest_vers == "16"* ]]; then
idevicerestore2+="2" idevicerestore2+="2"
ExtraArgs+="y" ExtraArgs+="y"
fi fi
@ -5726,7 +5726,8 @@ menu_ipsw() {
else else
warn "Selected SHSH file failed validation, proceed with caution" warn "Selected SHSH file failed validation, proceed with caution"
if (( device_proc >= 7 )); then if (( device_proc >= 7 )); then
print "* If this is an OTA blob, it should be fine to use for restoring" print "* If this is an OTA/onboard blob, it should be fine to use for restoring"
print "* If the restore does not work here, use futurerestore manually"
fi fi
fi fi
elif [[ $2 != "ipsw" ]]; then elif [[ $2 != "ipsw" ]]; then