#!/bin/bash 

cnt=0;

while [ $cnt -lt 60 ] ;
do
    if [ -b "$INSTALLDEV" ] ; then
       echo "Detected $INSTALLDEV";
       break;
    fi;
    sleep 1;
    cnt=$(($cnt+1));
    echo "Waiting for $INSTALLDEV device .. ($cnt/60)";
done

if [ $cnt -eq 60 ]; then
   echo "Error Device $INSTALLDEV not detected";
fi

echo "ncs5700 init: SSD BLK Done"
