This commit is contained in:
Nebula committed 2022-12-13 18:03:26 -05:00
1 parent defb841b3a
commit fdb0ece56b
1 file changed
+2 -1
+2 -1
View File
@@ -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