From ae23ae2d37de1e5dd028ba10a7ec666bfad78223 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 31 Oct 2021 11:30:48 -0700 Subject: [PATCH] Remove code in scripts that should be removed --- scripts/boot_patch.sh | 8 -------- scripts/uninstaller.sh | 4 ---- 2 files changed, 12 deletions(-) diff --git a/scripts/boot_patch.sh b/scripts/boot_patch.sh index 99d62e0bd..e2370a5e7 100644 --- a/scripts/boot_patch.sh +++ b/scripts/boot_patch.sh @@ -164,14 +164,6 @@ if [ -f magisk64 ]; then unset SKIP64 fi -# Work around custom legacy Sony /init -> /(s)bin/init_sony : /init.real setup -INIT=init -SKIPSONY="#" -if ./magiskboot cpio ramdisk.cpio "exists init.real"; then - INIT=init.real - unset SKIPSONY -fi - ./magiskboot cpio ramdisk.cpio \ "add 0750 $INIT magiskinit" \ "mkdir 0750 overlay.d" \ diff --git a/scripts/uninstaller.sh b/scripts/uninstaller.sh index 6e9537da0..ed5309c95 100644 --- a/scripts/uninstaller.sh +++ b/scripts/uninstaller.sh @@ -125,10 +125,6 @@ case $((STATUS & 3)) in else ui_print "! Boot image backup unavailable" ui_print "- Restoring ramdisk with internal backup" - if ./magiskboot cpio ramdisk.cpio "exists init.real"; then - # Work around custom legacy Sony /init -> /(s)bin/init_sony : /init.real setup - ./magiskboot cpio ramdisk.cpio "mv .backup/init .backup/init.real" - fi ./magiskboot cpio ramdisk.cpio restore if ! ./magiskboot cpio ramdisk.cpio "exists init"; then # A only system-as-root