From 565bea9613dfd76edcf9b37e3f22ba0fcb8566e7 Mon Sep 17 00:00:00 2001 From: Nebula Date: Mon, 7 Nov 2022 11:00:24 -0500 Subject: [PATCH] better boot file existing check --- palera1n.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/palera1n.sh b/palera1n.sh index ec8b8dd..c639941 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -496,7 +496,11 @@ fi # ============ # Actually create the boot files -if [ ! -e boot-"$deviceid" ]; then +if [ ! -f boot-"$deviceid"/.fsboot ]; then + rm -rf boot-"$deviceid" +fi + +if [ ! -f boot-"$deviceid"/iBEC.img4 ]; then _pwn # if tweaks, set ipswurl to a custom one @@ -505,6 +509,7 @@ if [ ! -e boot-"$deviceid" ]; then fi # Downloading files, and decrypting iBSS/iBEC + rm -rf boot-"$deviceid" mkdir boot-"$deviceid" echo "[*] Converting blob" @@ -552,6 +557,8 @@ if [ ! -e boot-"$deviceid" ]; then cd .. "$dir"/img4 -i work/iBSS.patched -o boot-"$deviceid"/iBSS.img4 -M work/IM4M -A -T ibss "$dir"/img4 -i work/iBEC.patched -o boot-"$deviceid"/iBEC.img4 -M work/IM4M -A -T ibec + + touch boot-"$deviceid"/.fsboot fi # ============