summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2018-07-16 13:54:49 -0300
committerosm0sis <osm0sis@outlook.com>2018-07-16 13:54:49 -0300
commit1811b87a196aeebdf279e1878f52e0f3428e8bc3 (patch)
tree12735f2de25ce7478b2d92a51f04fb42a2c35ad9
parent915cdaff1bf95af63bef1e82c23f1b5f9edfc762 (diff)
AK2: fix slot detection broken by block auto detection
-rwxr-xr-xtools/ak2-core.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh
index 3296751..44f7cbc 100755
--- a/tools/ak2-core.sh
+++ b/tools/ak2-core.sh
@@ -567,6 +567,11 @@ case $block in
ui_print " "; ui_print "Unable to determine $block partition. Aborting..."; exit 1;
fi;
;;
+ *)
+ if [ "$slot" ]; then
+ test -e "$block$slot" && block=$block$slot;
+ fi;
+ ;;
esac;
## end methods