Update scripts to use BusyBox standalone mode

This commit is contained in:
topjohnwu
2020-03-08 22:25:06 -07:00
parent 409cb06ea0
commit db9a4b31f9
5 changed files with 59 additions and 58 deletions

View File

@@ -56,10 +56,9 @@ initialize() {
if $BOOTMODE; then
# Override ui_print when booted
ui_print() { log -t Magisk -- "$1"; }
else
OUTFD=
setup_flashable
fi
OUTFD=
setup_flashable
}
main() {
@@ -73,9 +72,9 @@ main() {
$BOOTMODE || recovery_actions
ui_print "************************"
ui_print "* Magisk v$MAGISK_VER addon.d"
ui_print "************************"
PRETTY_VER=$MAGISK_VER
echo $PRETTY_VER | grep -q '\.' && PRETTY_VER=v$PRETTY_VER
print_title "Magisk $PRETTY_VER addon.d"
mount_partitions
check_data