Remove code in scripts that should be removed

This commit is contained in:
topjohnwu 2021-10-31 11:30:48 -07:00
parent e34e04af04
commit ae23ae2d37
2 changed files with 0 additions and 12 deletions

View File

@ -164,14 +164,6 @@ if [ -f magisk64 ]; then
unset SKIP64 unset SKIP64
fi 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 \ ./magiskboot cpio ramdisk.cpio \
"add 0750 $INIT magiskinit" \ "add 0750 $INIT magiskinit" \
"mkdir 0750 overlay.d" \ "mkdir 0750 overlay.d" \

View File

@ -125,10 +125,6 @@ case $((STATUS & 3)) in
else else
ui_print "! Boot image backup unavailable" ui_print "! Boot image backup unavailable"
ui_print "- Restoring ramdisk with internal backup" 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 ./magiskboot cpio ramdisk.cpio restore
if ! ./magiskboot cpio ramdisk.cpio "exists init"; then if ! ./magiskboot cpio ramdisk.cpio "exists init"; then
# A only system-as-root # A only system-as-root