mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-24 23:31:48 +01:00
Add option to create custom IPSW from main menu
This commit is contained in:
parent
c15e3c7984
commit
4be22f7c9c
29
restore.sh
29
restore.sh
@ -112,18 +112,19 @@ Main() {
|
|||||||
if [[ $SkipMainMenu == 1 && $1 != "NoColor" ]]; then
|
if [[ $SkipMainMenu == 1 && $1 != "NoColor" ]]; then
|
||||||
Mode="$1"
|
Mode="$1"
|
||||||
else
|
else
|
||||||
Selection=("Downgrade device" "Save OTA blobs")
|
Selection=("Downgrade Device" "Save OTA Blobs")
|
||||||
if [[ $DeviceProc != 7 && $DeviceState == "Normal" ]]; then
|
if [[ $DeviceProc != 7 && $DeviceState == "Normal" ]]; then
|
||||||
Selection+=("Just put device in kDFU mode")
|
Selection+=("Create Custom IPSW" "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 ***"
|
||||||
Input "Select an option:"
|
Input "Select an option:"
|
||||||
select opt in "${Selection[@]}"; do
|
select opt in "${Selection[@]}"; do
|
||||||
case $opt in
|
case $opt in
|
||||||
"Downgrade device" ) Mode="Downgrade"; break;;
|
"Downgrade Device" ) Mode="Downgrade"; break;;
|
||||||
"Save OTA blobs" ) Mode="SaveOTABlobs"; break;;
|
"Save OTA Blobs" ) Mode="SaveOTABlobs"; break;;
|
||||||
"Just put device in kDFU mode" ) Mode="kDFU"; break;;
|
"Create Custom IPSW" ) Mode="IPSW32"; break;;
|
||||||
|
"Put Device in kDFU Mode" ) Mode="kDFU"; break;;
|
||||||
"(Re-)Install Dependencies" ) InstallDepends;;
|
"(Re-)Install Dependencies" ) InstallDepends;;
|
||||||
* ) exit 0;;
|
* ) exit 0;;
|
||||||
esac
|
esac
|
||||||
@ -132,7 +133,23 @@ Main() {
|
|||||||
|
|
||||||
SelectVersion
|
SelectVersion
|
||||||
|
|
||||||
if [[ $Mode != "Downgrade" ]]; then
|
if [[ $Mode == "IPSW32" ]]; then
|
||||||
|
IPSW="${IPSWType}_${OSVer}_${BuildVer}_Restore"
|
||||||
|
IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom"
|
||||||
|
echo
|
||||||
|
Input "Memory Option for creating custom IPSW"
|
||||||
|
Echo "* This option makes creating the custom IPSW faster, but it requires at least 8GB of RAM."
|
||||||
|
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)."
|
||||||
|
read -p "$(Input 'Enable this option? (Y/n):')" JBMemory
|
||||||
|
echo
|
||||||
|
IPSW32
|
||||||
|
Log "Custom IPSW has been created: $IPSWCustom.ipsw"
|
||||||
|
Echo "* This custom IPSW has a jailbreak built in."
|
||||||
|
Echo "* Run the script again and select Downgrade device to use the custom IPSW."
|
||||||
|
Echo "* You may also use futurerestore manually (make sure to use the latest beta)"
|
||||||
|
|
||||||
|
elif [[ $Mode != "Downgrade" ]]; then
|
||||||
$Mode
|
$Mode
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user