blob: e1371645029bf19168275f6605a96a6f9be0f397 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001#! /bin/bash
2
3display_usage() {
4 echo -e "\nUsage:\n$0 [fn] \n"
5}
6
7if [ $# -lt 1 ]
8then
9 display_usage
10 exit 1
11fi
12
13echo "Waiting for XOS to create file $1"
14
15until find $1 &> /dev/null
16do
17 sleep 1
18 echo -ne "."
19 RUNNING_CONTAINER=`sudo docker ps|grep "xos"|awk '{print $$NF}'`
20 if [[ $RUNNING_CONTAINER == "" ]]; then
21 echo Container may have failed. check with \"make showlogs\'
22 exit 1
23 fi
24done
25echo "XOS is ready"