Fix "Downgrade command not found"

also fix main menu items
This commit is contained in:
LukeZGD 2021-11-09 16:59:56 +08:00
parent 5b773d3b4a
commit 5f27ef2db6
2 changed files with 4 additions and 8 deletions

View File

@ -61,7 +61,7 @@ Downgrade() {
curl -L https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/raw/master/$ProductType/$BuildVer/index.html -o tmp/index.html
mv tmp/index.html resources/firmware/$ProductType/$BuildVer
if [[ $DeviceProc != 7 ]]; then
elif [[ $DeviceProc != 7 ]]; then
Input "Jailbreak Option"
Echo "* When this option is enabled, your device will be jailbroken on restore."
if [[ $ProductType == "iPad2,5" || $ProductType == "iPad2,6" || $ProductType == "iPad2,7" ]]; then

View File

@ -104,15 +104,11 @@ Main() {
if [[ $SkipMainMenu == 1 && $1 != "NoColor" && $1 != "NoDevice" ]]; then
Mode="$1"
else
if [[ $1 != "NoDevice" ]]; then
Selection+=("Downgrade Device")
fi
[[ $1 != "NoDevice" ]] && Selection+=("Downgrade Device")
Selection+=("Save OTA Blobs")
if [[ $DeviceProc != 7 ]] && [[ $DeviceState == "Normal" || $1 == "NoDevice" ]]; then
if [[ $DeviceProc != 7 ]]; then
Selection+=("Create Custom IPSW")
fi
if [[ $DeviceProc != 7 && $DeviceState == "Normal" ]]; then
Selection+=("Put Device in kDFU Mode")
[[ $DeviceState == "Normal" ]] && Selection+=("Put Device in kDFU Mode")
fi
Selection+=("(Re-)Install Dependencies" "(Any other key to exit)")
Echo "*** Main Menu ***"