aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support/fastrpc/fastrpc/mount-dsp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/fastrpc/fastrpc/mount-dsp.sh')
-rw-r--r--recipes-support/fastrpc/fastrpc/mount-dsp.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes-support/fastrpc/fastrpc/mount-dsp.sh b/recipes-support/fastrpc/fastrpc/mount-dsp.sh
index a76e485..45363a4 100644
--- a/recipes-support/fastrpc/fastrpc/mount-dsp.sh
+++ b/recipes-support/fastrpc/fastrpc/mount-dsp.sh
@@ -13,7 +13,14 @@ if [ -r /sys/devices/soc0/machine ] ; then
esac
fi
-if [ -z "$WHAT" -o ! -r "$WHAT"] ; then
+if [ -z "$WHAT" -o ! -r "$WHAT" ] ; then
+ i=0
+ while ! [ -d /dev/disk/by-partlabel ] ; do
+ i=$(( $i + 1))
+ [ $i -gt 30 ] && break;
+ sleep 1
+ done
+
if [ -h /dev/disk/by-partlabel/dsp_a ] ; then
WHAT=/dev/disk/by-partlabel/dsp_a
else