Print options when enabled/disabled

This commit is contained in:
LukeZGD 2021-11-08 09:48:18 +08:00
parent ccd68034f8
commit 93277df442

View File

@ -16,7 +16,7 @@ FRBaseband() {
mv $Baseband saved/baseband mv $Baseband saved/baseband
mv BuildManifest.plist saved/$ProductType mv BuildManifest.plist saved/$ProductType
BuildManifest="saved/$ProductType/BuildManifest.plist" BuildManifest="saved/$ProductType/BuildManifest.plist"
elif [[ $DeviceProc != 7 && $Baseband5 == 0 ]]; then elif [[ $Baseband5 == 0 ]]; then
BuildManifest="saved/$ProductType/BuildManifest.plist" BuildManifest="saved/$ProductType/BuildManifest.plist"
fi fi
@ -90,6 +90,8 @@ Downgrade() {
fi fi
Log "Jailbreak option enabled. Using $JBName for the jailbreak" Log "Jailbreak option enabled. Using $JBName for the jailbreak"
else
Log "Jailbreak option disabled by user."
fi fi
echo echo
fi fi
@ -102,10 +104,13 @@ Downgrade() {
read -p "$(Input 'Enable this option? (y/N):')" Baseband5 read -p "$(Input 'Enable this option? (y/N):')" Baseband5
if [[ $Baseband5 == 'Y' || $Baseband5 == 'y' ]]; then if [[ $Baseband5 == 'Y' || $Baseband5 == 'y' ]]; then
Baseband5=0 Baseband5=0
Log "Latest baseband enabled by user."
else else
Baseband841 Baseband841
Log "Latest baseband disabled. Using iOS 8.4.1 baseband"
fi fi
echo echo
elif [[ $DeviceProc != 7 && $ProductType != "iPad2,2" ]]; then elif [[ $DeviceProc != 7 && $ProductType != "iPad2,2" ]]; then
Input "Latest Baseband Option" Input "Latest Baseband Option"
Echo "* iOS-OTA-Downgrader flashes the latest baseband to 32-bit devices." Echo "* iOS-OTA-Downgrader flashes the latest baseband to 32-bit devices."
@ -114,8 +119,10 @@ Downgrade() {
read -p "$(Input 'Enable this option? (Y/n):')" Baseband5 read -p "$(Input 'Enable this option? (Y/n):')" Baseband5
if [[ $Baseband5 == 'N' || $Baseband5 == 'n' ]]; then if [[ $Baseband5 == 'N' || $Baseband5 == 'n' ]]; then
Baseband841 Baseband841
Log "Latest baseband disabled by user. Using iOS 8.4.1 baseband"
else else
Baseband5=0 Baseband5=0
Log "Latest baseband enabled."
fi fi
echo echo
fi fi
@ -134,6 +141,11 @@ Downgrade() {
Echo "* If you do not have enough RAM, disable this option and make sure that you have enough storage space." Echo "* If you do not have enough RAM, disable this option and make sure that you have enough storage space."
Echo "* This option is enabled by default (Y)." Echo "* This option is enabled by default (Y)."
read -p "$(Input 'Enable this option? (Y/n):')" JBMemory read -p "$(Input 'Enable this option? (Y/n):')" JBMemory
if [[ $JBMemory == 'N' || $JBMemory == 'n' ]]; then
Log "Memory option disabled by user."
else
Log "Memory option enabled."
fi
echo echo
fi fi