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