mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
feat: prevent jailbreaking on 16.4+ to avoid bootloops (#378)
Booting an iOS 16.3.1 or below ramdisk on 16.4 will cause a bootloop. palera1n.sh is no longer maintained, but I'm making this final update to prevent users from fucking up their devices.
This commit is contained in:
1 parent
ad2c746c92
commit
4c7ee6c585
1 file changed
+9
@@ -555,6 +555,15 @@ function _wait_for_device() {
|
||||
exit
|
||||
fi
|
||||
|
||||
version_major=${version%%.*}
|
||||
version_minor=${version#*.}
|
||||
version_minor=${version_minor%%.*}
|
||||
if [[ $version_major -eq 16 && $version_minor -ge 4 ]] || [[ $version_major -ge 17 ]]; then
|
||||
echo "[-] palera1n.sh does not work on iOS 16.4 and above."
|
||||
echo "[-] Refusing to proceed as it would bootloop your device and force you to restore."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$dfuhelper" = "1" ]; then
|
||||
echo "[*] Running DFU helper"
|
||||
_dfuhelper "$cpid" || {
|
||||
|
||||
Reference in new issue
Block a user