Always use 6.1.3 for gasgauge-patch

This commit is contained in:
LukeZGD 2024-07-01 08:40:28 +08:00
parent fb2cd6ca7c
commit aacf46bf9c

View File

@ -322,8 +322,7 @@ set_tool_paths() {
if [[ $(ssh -V 2>&1 | grep -c SSH_8.8) == 1 || $(ssh -V 2>&1 | grep -c SSH_8.9) == 1 ||
$(ssh -V 2>&1 | grep -c SSH_9.) == 1 || $(ssh -V 2>&1 | grep -c SSH_1) == 1 ]]; then
echo " PubkeyAcceptedAlgorithms +ssh-rsa" >> ssh_config
fi
if [[ $(ssh -V 2>&1 | grep -c SSH_6) == 1 ]]; then
elif [[ $(ssh -V 2>&1 | grep -c SSH_6) == 1 ]]; then
cat ssh_config | sed 's,Add,#Add,g' | sed 's,HostKeyA,#HostKeyA,g' > ssh_config
fi
scp2="scp -F ./ssh_config"
@ -3570,19 +3569,13 @@ ipsw_prepare_multipatch() {
4.3* ) vers="4.3.5"; build="8L1";;
5* ) vers="5.1.1"; build="9B206";;
6* ) vers="6.1.3"; build="10B329";;
esac
if [[ $ipsw_gasgauge_patch == 1 ]]; then
local ver2="${device_target_vers:0:1}"
if (( ver2 >= 7 )); then
vers="6.1.3"
build="10B329"
fi
else
case $device_target_vers in
7* ) vers="7.1.2"; build="11D257";;
8* ) vers="8.4.1"; build="12H321";;
9* ) vers="9.3.5"; build="13G36";;
esac
if [[ $ipsw_gasgauge_patch == 1 ]]; then
vers="6.1.3"
build="10B329"
fi
saved_path="../saved/$device_type/$build"
ipsw_get_url $build
@ -6882,6 +6875,9 @@ ipsw_custom_set() {
ipsw_custom+="B"
fi
fi
if [[ $ipsw_gasgauge_patch == 1 ]]; then
ipsw_custom+="G"
fi
if [[ $ipsw_hacktivate == 1 ]]; then
ipsw_custom+="H"
fi