better boot file existing check

This commit is contained in:
Nebula committed 2022-11-07 11:00:24 -05:00
1 parent 6ee66f4048
commit 565bea9613
1 file changed
+8 -1
+8 -1
View File
@@ -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
# ============