mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
better boot file existing check
This commit is contained in:
1 file changed
+8
-1
+8
-1
@@ -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
|
||||
|
||||
# ============
|
||||
|
||||
Reference in new issue
Block a user