Update scripts

This commit is contained in:
topjohnwu
2018-01-01 16:46:28 +08:00
parent 930c82316a
commit e5c3183025
7 changed files with 31 additions and 36 deletions

View File

@@ -34,20 +34,16 @@ fi
if $BOOTMODE; then
# Load utility functions
. $MAGISKBIN/util_functions.sh
BOOTMODE=true
boot_actions
mount_partitions
fi
cd $MAGISKBIN
# Find the boot image
find_boot_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
ui_print "- Found Boot Image: $BOOTIMAGE"
migrate_boot_backup
ui_print "- Unpacking boot image"
./magiskboot --unpack "$BOOTIMAGE"
CHROMEOS=false