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 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 mv tmp/index.html resources/firmware/$ProductType/$BuildVer
if [[ $DeviceProc != 7 ]]; then elif [[ $DeviceProc != 7 ]]; then
Input "Jailbreak Option" Input "Jailbreak Option"
Echo "* When this option is enabled, your device will be jailbroken on restore." Echo "* When this option is enabled, your device will be jailbroken on restore."
if [[ $ProductType == "iPad2,5" || $ProductType == "iPad2,6" || $ProductType == "iPad2,7" ]]; then 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 if [[ $SkipMainMenu == 1 && $1 != "NoColor" && $1 != "NoDevice" ]]; then
Mode="$1" Mode="$1"
else else
if [[ $1 != "NoDevice" ]]; then [[ $1 != "NoDevice" ]] && Selection+=("Downgrade Device")
Selection+=("Downgrade Device")
fi
Selection+=("Save OTA Blobs") Selection+=("Save OTA Blobs")
if [[ $DeviceProc != 7 ]] && [[ $DeviceState == "Normal" || $1 == "NoDevice" ]]; then if [[ $DeviceProc != 7 ]]; then
Selection+=("Create Custom IPSW") Selection+=("Create Custom IPSW")
fi [[ $DeviceState == "Normal" ]] && Selection+=("Put Device in kDFU Mode")
if [[ $DeviceProc != 7 && $DeviceState == "Normal" ]]; then
Selection+=("Put Device in kDFU Mode")
fi fi
Selection+=("(Re-)Install Dependencies" "(Any other key to exit)") Selection+=("(Re-)Install Dependencies" "(Any other key to exit)")
Echo "*** Main Menu ***" Echo "*** Main Menu ***"