mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-18 17:36:23 +01:00
Dont prompt jailbreak option on "Other"
This commit is contained in:
parent
d4e39828c1
commit
be7c48b409
11
restore.sh
11
restore.sh
@ -197,8 +197,6 @@ function SelectVersion {
|
|||||||
*) exit;;
|
*) exit;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
[[ -z $A7Device ]] && read -p "$(Input 'Jailbreak the selected iOS version? (y/N): ')" Jailbreak
|
|
||||||
[[ $Jailbreak == y ]] || [[ $Jailbreak == Y ]] && Jailbreak=1
|
|
||||||
Action
|
Action
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -210,6 +208,11 @@ function Action {
|
|||||||
read -p "$(Input 'Path to IPSW (drag IPSW to terminal window): ')" IPSW
|
read -p "$(Input 'Path to IPSW (drag IPSW to terminal window): ')" IPSW
|
||||||
IPSW="$(basename $IPSW .ipsw)"
|
IPSW="$(basename $IPSW .ipsw)"
|
||||||
read -p "$(Input 'Path to SHSH (drag SHSH to terminal window): ')" SHSH
|
read -p "$(Input 'Path to SHSH (drag SHSH to terminal window): ')" SHSH
|
||||||
|
|
||||||
|
elif [[ $Mode == 'Downgrade' ]] && [[ $A7Device != 1 ]]; then
|
||||||
|
read -p "$(Input 'Jailbreak the selected iOS version? (y/N): ')" Jailbreak
|
||||||
|
[[ $Jailbreak == y ]] || [[ $Jailbreak == Y ]] && Jailbreak=1
|
||||||
|
|
||||||
elif [[ $A7Device == 1 ]] && [[ $pwnDFUDevice != 0 ]]; then
|
elif [[ $A7Device == 1 ]] && [[ $pwnDFUDevice != 0 ]]; then
|
||||||
[[ $DFUDevice == 1 ]] && CheckM8 || Recovery
|
[[ $DFUDevice == 1 ]] && CheckM8 || Recovery
|
||||||
fi
|
fi
|
||||||
@ -489,7 +492,7 @@ function Downgrade {
|
|||||||
SaveOTABlobs
|
SaveOTABlobs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $Jailbreak ]] && [[ -z $A7Device ]]; then
|
if [[ $Jailbreak != 1 ]] && [[ $A7Device != 1 ]]; then
|
||||||
Log "Preparing for futurerestore... (Enter root password of your PC/Mac when prompted)"
|
Log "Preparing for futurerestore... (Enter root password of your PC/Mac when prompted)"
|
||||||
cd resources
|
cd resources
|
||||||
sudo bash -c "$python -m SimpleHTTPServer 80 &"
|
sudo bash -c "$python -m SimpleHTTPServer 80 &"
|
||||||
@ -544,7 +547,7 @@ function Downgrade {
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
Log "Restoring done!"
|
Log "Restoring done!"
|
||||||
if [[ -z $Jailbreak ]] && [[ -z $A7Device ]]; then
|
if [[ $Jailbreak != 1 ]] && [[ $A7Device != 1 ]]; then
|
||||||
Log "Stopping local server... (Enter root password of your PC/Mac when prompted)"
|
Log "Stopping local server... (Enter root password of your PC/Mac when prompted)"
|
||||||
ps aux | awk '/python/ {print "sudo kill -9 "$2" 2>/dev/null"}' | bash
|
ps aux | awk '/python/ {print "sudo kill -9 "$2" 2>/dev/null"}' | bash
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user