From 1d3d30fa45e1ac8b6ca7f90f418315a9895e825c Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 9 Nov 2017 03:05:25 +0800 Subject: [PATCH] Get potential slot info --- scripts/util_functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index c1d8d05df..6accf7cc8 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -41,7 +41,8 @@ ui_print() { mount_partitions() { # Check A/B slot SLOT=`getprop ro.boot.slot_suffix` - [ -z $SLOT ] || ui_print "- A/B partition detected, current slot: $SLOT" + [ -z $SLOT ] && SLOT=_`getprop ro.boot.slot` + [ $SLOT = "_" ] || ui_print "- A/B partition detected, current slot: $SLOT" ui_print "- Mounting /system, /vendor" is_mounted /system || [ -f /system/build.prop ] || mount -o ro /system 2>/dev/null if ! is_mounted /system && ! [ -f /system/build.prop ]; then