Support more locations for dtbo img (#24)

* Support more locations for dtbo img (from Magisk's util_functions.sh)
This commit is contained in:
Zackptg5 authored and Chris Renshaw committed 2018-05-03 06:15:06 -03:00
1 parent 14826f628f
commit bafe4bd586
1 file changed
+2 -1
+2 -1
View File
@@ -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;