2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-08-31 12:15:15 +00:00

Remove old unused code

This commit is contained in:
topjohnwu
2021-01-14 05:59:53 -08:00
parent c91c070343
commit bb303d2da1
2 changed files with 3 additions and 12 deletions

View File

@@ -142,18 +142,13 @@ echo "RECOVERYMODE=$RECOVERYMODE" >> config
"mkdir 000 .backup" \
"add 000 .backup/.magisk config"
if [ $((STATUS & 4)) -ne 0 ]; then
ui_print "- Compressing ramdisk"
./magiskboot cpio ramdisk.cpio compress
fi
rm -f ramdisk.cpio.orig config
#################
# Binary Patches
#################
for dt in dtb kernel_dtb extra recovery_dtbo; do
for dt in dtb kernel_dtb extra; do
[ -f $dt ] && ./magiskboot dtb $dt patch && ui_print "- Patch fstab in $dt"
done