From 6532dceeb3e9b05dedf5b796639c7a5e99a5a9f1 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 26 Jun 2024 10:42:32 +0800 Subject: [PATCH] Fix iPhone 6S issues with SSH ramdisk --- restore.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/restore.sh b/restore.sh index 4900ae86..c6a50400 100755 --- a/restore.sh +++ b/restore.sh @@ -4731,9 +4731,9 @@ device_ramdisk64() { iv=$(echo $device_fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | .iv') key=$(echo $device_fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | .key') if [[ $device_type == "iPhone8"* && $getcomp == "iB"* ]]; then - name=$(echo $device_fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | select(.filename | startswith("'$getcomp'.'$device_model'.")) | .filename') - iv=$(echo $device_fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | select(.filename | startswith("'$getcomp'.'$device_model'.")) | .iv') - key=$(echo $device_fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | select(.filename | startswith("'$getcomp'.'$device_model'.")) | .key') + name=$(echo $device_fw_key | $jq -j '.keys[] | select(.image | startswith("'$getcomp'")) | select(.filename | startswith("'$getcomp'.'$device_model'.")) | .filename') + iv=$(echo $device_fw_key | $jq -j '.keys[] | select(.image | startswith("'$getcomp'")) | select(.filename | startswith("'$getcomp'.'$device_model'.")) | .iv') + key=$(echo $device_fw_key | $jq -j '.keys[] | select(.image | startswith ("'$getcomp'")) | select(.filename | startswith("'$getcomp'.'$device_model'.")) | .key') fi case $getcomp in "iBSS" | "iBEC" ) path="Firmware/dfu/";; @@ -4767,7 +4767,7 @@ device_ramdisk64() { "RestoreRamdisk" ) name="048-08497-242.dmg";; esac if [[ $device_type == "iPhone8,1" || $device_type == "iPhone8,2" ]] && [[ $getcomp == "Kernelcache" ]]; then - name="kernelcache.release.$device_model" + name="kernelcache.release.${device_model:0:3}" fi if [[ $build_id == "18C66" ]]; then case $getcomp in