diff --git a/palera1n.sh b/palera1n.sh index c4fe126..2d28342 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -354,13 +354,13 @@ if [ ! -e boot-"$deviceid" ]; then "$dir"/img4 -i work/iBEC.patched -o boot-"$deviceid"/iBEC.img4 -M work/IM4M -A -T ibec > "$out" echo "[*] Patching and converting kernelcache" - if [[ "$deviceid" == *'iPhone8'* ]]; then + if [[ "$deviceid" == "iPhone8"* ]] || [[ "$deviceid" == "iPad6"* ]]; then python3 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw --extra work/kpp.bin > "$out" else python3 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw > "$out" fi "$dir"/Kernel64Patcher work/kcache.raw work/kcache.patched -a -o > "$out" - if [[ "$deviceid" == *'iPhone8'* ]]; then + if [[ "$deviceid" == *'iPhone8'* ]] || [[ "$deviceid" == *'iPad6'* ]]; then python3 -m pyimg4 im4p create -i work/kcache.patched -o work/krnlboot.im4p --extra work/kpp.bin -f rkrn --lzss > "$out" else python3 -m pyimg4 im4p create -i work/kcache.patched -o work/krnlboot.im4p -f rkrn --lzss > "$out"