Support more locations for dtbo img (#24)
* Support more locations for dtbo img (from Magisk's util_functions.sh)
This commit is contained in:
1 parent
14826f628f
commit
bafe4bd586
1 file changed
+2
-1
+2
-1
@@ -332,7 +332,8 @@ flash_boot() {
|
||||
fi;
|
||||
done;
|
||||
if [ "$dtbo" ]; then
|
||||
dtbo_block=/dev/block/bootdevice/by-name/dtbo$slot;
|
||||
dtbo_block=`find /dev/block -iname dtbo$slot | head -n 1` 2>/dev/null;
|
||||
[ ! -z $dtbo_block ] && dtbo_block=`readlink -f $dtbo_block`
|
||||
if [ ! -e "$(echo $dtbo_block)" ]; then
|
||||
ui_print " "; ui_print "dtbo partition could not be found. Aborting..."; exit 1;
|
||||
fi;
|
||||
|
||||
Reference in new issue
Block a user