Add bshsh for #585, and some other fixes

This commit is contained in:
LukeeGD 2024-10-01 18:00:36 +08:00
parent e31a6055a1
commit d45b8d7cfd

View File

@ -1174,7 +1174,7 @@ device_find_mode() {
done done
if [[ $device_in != 1 ]]; then if [[ $device_in != 1 ]]; then
if [[ $timeout != 1 && $timeout != 25 ]]; then if [[ $timeout != 1 && $timeout != 20 ]]; then
error "Failed to find device in $mode mode (Timed out). Please run the script again." error "Failed to find device in $mode mode (Timed out). Please run the script again."
fi fi
return 1 return 1
@ -7569,7 +7569,7 @@ menu_shsh_browse() {
if [[ $mac_cocoa == 1 ]]; then if [[ $mac_cocoa == 1 ]]; then
newpath="$($cocoadialog fileselect)" newpath="$($cocoadialog fileselect)"
else else
newpath="$($zenity --file-selection --file-filter='SHSH | *.shsh *.shsh2' --title="Select $text SHSH file")" newpath="$($zenity --file-selection --file-filter='SHSH | *.bshsh2 *.shsh *.shsh2' --title="Select $text SHSH file")"
fi fi
[[ ! -s "$newpath" ]] && read -p "$(input "Enter path to $text IPSW file (or press Ctrl+C to cancel): ")" newpath [[ ! -s "$newpath" ]] && read -p "$(input "Enter path to $text IPSW file (or press Ctrl+C to cancel): ")" newpath
[[ ! -s "$newpath" ]] && return [[ ! -s "$newpath" ]] && return
@ -7788,7 +7788,7 @@ menu_other() {
menu_items+=("Activation Records") menu_items+=("Activation Records")
fi fi
fi fi
if (( device_proc <= 10 )) && [[ $device_latest_vers != "16"* && $device_proc != 1 ]]; then if (( device_proc <= 10 )) && [[ $device_latest_vers != "16"* && $device_checkm8ipad != 1 && $device_proc != 1 ]]; then
menu_items+=("SSH Ramdisk") menu_items+=("SSH Ramdisk")
fi fi
case $device_mode in case $device_mode in