diff options
-rwxr-xr-x | scripts/start-sim | 13 |
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}" | |||
12 | bindir="${PRGDIR}/../bin" | 12 | bindir="${PRGDIR}/../bin" |
13 | date=$(date '+%F_%T') | 13 | date=$(date '+%F_%T') |
14 | quiet="" | 14 | quiet="" |
15 | waiting="" | ||
15 | inventory="" | 16 | inventory="" |
16 | 17 | ||
17 | function wait_for_text() | 18 | function wait_for_text() |
@@ -36,6 +37,12 @@ then | |||
36 | shift 1 | 37 | shift 1 |
37 | fi | 38 | fi |
38 | 39 | ||
40 | if [ "$1" = "-w" ] | ||
41 | then | ||
42 | waiting="true" | ||
43 | shift 1 | ||
44 | fi | ||
45 | |||
39 | if [ "x$1" = "x" ]; then | 46 | if [ "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") |