mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 19:19:48 +02:00
lol
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -600,7 +600,9 @@ if [ ! -f blobs/"$deviceid"-"$version".der ]; then
|
|||||||
|
|
||||||
if [ "$restorerootfs" = "1" ]; then
|
if [ "$restorerootfs" = "1" ]; then
|
||||||
echo "[*] Removing Jailbreak"
|
echo "[*] Removing Jailbreak"
|
||||||
|
if [ ! "$fs" = "disk1s1" ] || [ ! "$fs" = "disk0s1s1" ]; then
|
||||||
remote_cmd "/sbin/apfs_deletefs $fs > /dev/null || true"
|
remote_cmd "/sbin/apfs_deletefs $fs > /dev/null || true"
|
||||||
|
fi
|
||||||
remote_cmd "rm -f /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kcache.raw /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kcache.patched /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kcache.im4p /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kernelcachd"
|
remote_cmd "rm -f /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kcache.raw /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kcache.patched /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kcache.im4p /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kernelcachd"
|
||||||
remote_cmd "mv /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kernelcache.bak /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kernelcache || true"
|
remote_cmd "mv /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kernelcache.bak /mnt6/$active/System/Library/Caches/com.apple.kernelcaches/kernelcache || true"
|
||||||
remote_cmd "/bin/sync"
|
remote_cmd "/bin/sync"
|
||||||
@@ -624,7 +626,6 @@ if [ ! -f blobs/"$deviceid"-"$version".der ]; then
|
|||||||
remote_cmd "/sbin/newfs_apfs -A -D -o role=r -v System /dev/disk0s1" && {
|
remote_cmd "/sbin/newfs_apfs -A -D -o role=r -v System /dev/disk0s1" && {
|
||||||
sleep 2
|
sleep 2
|
||||||
remote_cmd "/sbin/mount_apfs /dev/$fs /mnt8"
|
remote_cmd "/sbin/mount_apfs /dev/$fs /mnt8"
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
remote_cmd "cp -a /mnt1/. /mnt8/"
|
remote_cmd "cp -a /mnt1/. /mnt8/"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in new issue
Block a user