Commit ae23ae2d authored by topjohnwu's avatar topjohnwu

Remove code in scripts that should be removed

parent e34e04af
...@@ -164,14 +164,6 @@ if [ -f magisk64 ]; then ...@@ -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" \
......
...@@ -125,10 +125,6 @@ case $((STATUS & 3)) in ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment