diff options
author | onefang | 2019-08-04 01:53:07 +1000 |
---|---|---|
committer | onefang | 2019-08-04 01:53:07 +1000 |
commit | ecf4a93a481efb4dc1a2e867440b80a866446d3d (patch) | |
tree | deea3343fbc1a8515d1fd660c77a7fa66f08a084 | |
parent | Better sim startup finished messages. (diff) | |
download | opensim-SC_OLD-ecf4a93a481efb4dc1a2e867440b80a866446d3d.zip opensim-SC_OLD-ecf4a93a481efb4dc1a2e867440b80a866446d3d.tar.gz opensim-SC_OLD-ecf4a93a481efb4dc1a2e867440b80a866446d3d.tar.bz2 opensim-SC_OLD-ecf4a93a481efb4dc1a2e867440b80a866446d3d.tar.xz |
start-sim wait for the [RegionReady]: INITIALIZATION COMPLETE FOR message.
-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") |