aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-08-04 01:53:07 +1000
committeronefang2019-08-04 01:53:07 +1000
commitecf4a93a481efb4dc1a2e867440b80a866446d3d (patch)
treedeea3343fbc1a8515d1fd660c77a7fa66f08a084
parentBetter sim startup finished messages. (diff)
downloadopensim-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-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")