aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/start-sim
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/start-sim')
-rwxr-xr-xscripts/start-sim13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/start-sim b/scripts/start-sim
index 3966ac8..330b16b 100755
--- a/scripts/start-sim
+++ b/scripts/start-sim
@@ -12,6 +12,7 @@ tmux_send="${tmux_command} send-keys -t ${tmux_session}"
12bindir="${PRGDIR}/../bin" 12bindir="${PRGDIR}/../bin"
13date=$(date '+%F_%T') 13date=$(date '+%F_%T')
14quiet="" 14quiet=""
15waiting=""
15inventory="" 16inventory=""
16 17
17function wait_for_text() 18function wait_for_text()
@@ -36,6 +37,12 @@ then
36 shift 1 37 shift 1
37fi 38fi
38 39
40if [ "$1" = "-w" ]
41then
42 waiting="true"
43 shift 1
44fi
45
39if [ "x$1" = "x" ]; then 46if [ "x$1" = "x" ]; then
40 tgt=$(basename $(pwd)) 47 tgt=$(basename $(pwd))
41 num="$(echo ${tgt} | cut -c 4-)" 48 num="$(echo ${tgt} | cut -c 4-)"
@@ -105,7 +112,11 @@ case $(basename $0) in
105 fi 112 fi
106 fi 113 fi
107 114
108 ${tmux_send}:"${title}" Enter Enter Enter 115 if [ ! "x$waiting" = "x" ]
116 then
117 wait_for_text "${title}" "[RegionReady]: INITIALIZATION COMPLETE FOR ${title}"
118 fi
119
109 ;; 120 ;;
110 121
111 "backup-inventory") 122 "backup-inventory")