From c1c9f7522cf408d49f5d9696325cf613db8ce4cc Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sun, 7 Apr 2024 21:11:49 +0800 Subject: [PATCH] Update restore.sh --- restore.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/restore.sh b/restore.sh index 105e724f..604dbddd 100755 --- a/restore.sh +++ b/restore.sh @@ -145,7 +145,7 @@ set_tool_paths() { fi elif [[ -e /etc/debian_version ]]; then debian_ver=$(cat /etc/debian_version) - if [[ $debian_ver == *"sid" ]]; then + if [[ $debian_ver == *"sid" || $debian_ver == "kali"* ]]; then debian_ver="sid" else debian_ver="$(echo "$debian_ver" | cut -c -2)" @@ -2147,9 +2147,7 @@ ipsw_prepare_jailbreak() { if [[ $ipsw_memory == 1 ]]; then ExtraArgs+=" -memory" fi - if [[ $device_target_vers == "3"* || $device_proc == 1 ]]; then - ExtraArgs+=" -ramdiskgrow 10" - fi + ExtraArgs+=" -ramdiskgrow 10" if [[ $device_use_bb != 0 && $device_type != "$device_disable_bbupdate" ]]; then ExtraArgs+=" -bbupdate" elif [[ $device_type == "$device_disable_bbupdate" && $device_type == "iPhone"* ]]; then