mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Fix no device mode
This commit is contained in:
parent
7e85ba8ccc
commit
19d0c9ee6b
@ -597,6 +597,10 @@ device_get_info() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [[ $device_argmode == "none" ]]; then
|
||||||
|
device_entry
|
||||||
|
fi
|
||||||
|
|
||||||
device_model="$(echo $device_model | tr '[:upper:]' '[:lower:]')"
|
device_model="$(echo $device_model | tr '[:upper:]' '[:lower:]')"
|
||||||
device_model="${device_model%??}" # remove "ap" from the end
|
device_model="${device_model%??}" # remove "ap" from the end
|
||||||
if [[ -z $device_type && -n $device_model ]]; then
|
if [[ -z $device_type && -n $device_model ]]; then
|
||||||
@ -3345,12 +3349,12 @@ menu_main() {
|
|||||||
input "Select an option:"
|
input "Select an option:"
|
||||||
if [[ $device_mode != "none" ]]; then
|
if [[ $device_mode != "none" ]]; then
|
||||||
menu_items+=("Restore/Downgrade")
|
menu_items+=("Restore/Downgrade")
|
||||||
fi
|
|
||||||
if [[ $device_type == "iPad2"* && $device_vers == "4"* ]]; then
|
if [[ $device_type == "iPad2"* && $device_vers == "4"* ]]; then
|
||||||
:
|
:
|
||||||
elif (( device_proc < 7 )); then
|
elif (( device_proc < 7 )); then
|
||||||
menu_items+=("Jailbreak Device")
|
menu_items+=("Jailbreak Device")
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
if (( device_proc < 8 )); then
|
if (( device_proc < 8 )); then
|
||||||
menu_items+=("Save SHSH Blobs")
|
menu_items+=("Save SHSH Blobs")
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user