summaryrefslogtreecommitdiff
path: root/tools/ak2-core.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ak2-core.sh')
-rwxr-xr-xtools/ak2-core.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh
index f23f008..83c8d19 100755
--- a/tools/ak2-core.sh
+++ b/tools/ak2-core.sh
@@ -316,8 +316,7 @@ flash_boot() {
fi;
done;
if [ "$dtbo" ]; then
- dtbo_block=`find /dev/block -iname dtbo$slot | head -n 1` 2>/dev/null;
- [ ! -z $dtbo_block ] && dtbo_block=`readlink -f $dtbo_block`
+ dtbo_block=/dev/block/bootdevice/by-name/dtbo$slot;
if [ ! -e "$(echo $dtbo_block)" ]; then
ui_print " "; ui_print "dtbo partition could not be found. Aborting..."; exit 1;
fi;