mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 19:19:48 +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
|
# 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
|
_pwn
|
||||||
|
|
||||||
# if tweaks, set ipswurl to a custom one
|
# if tweaks, set ipswurl to a custom one
|
||||||
@@ -505,6 +509,7 @@ if [ ! -e boot-"$deviceid" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Downloading files, and decrypting iBSS/iBEC
|
# Downloading files, and decrypting iBSS/iBEC
|
||||||
|
rm -rf boot-"$deviceid"
|
||||||
mkdir boot-"$deviceid"
|
mkdir boot-"$deviceid"
|
||||||
|
|
||||||
echo "[*] Converting blob"
|
echo "[*] Converting blob"
|
||||||
@@ -552,6 +557,8 @@ if [ ! -e boot-"$deviceid" ]; then
|
|||||||
cd ..
|
cd ..
|
||||||
"$dir"/img4 -i work/iBSS.patched -o boot-"$deviceid"/iBSS.img4 -M work/IM4M -A -T ibss
|
"$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
|
"$dir"/img4 -i work/iBEC.patched -o boot-"$deviceid"/iBEC.img4 -M work/IM4M -A -T ibec
|
||||||
|
|
||||||
|
touch boot-"$deviceid"/.fsboot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ============
|
# ============
|
||||||
|
|||||||
Reference in new issue
Block a user