diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-02-14 10:12:58 +0800 |
---|---|---|
committer | Yan Yang <yangyanyj@chinamobile.com> | 2020-02-14 02:46:57 +0000 |
commit | 6f4177bd32317ba9628b1a2508ff30041186a799 (patch) | |
tree | 6c10510880882bee9196879e35f6bd63a38a27de | |
parent | 332d5d1e96b43d7dcf107a33e0f6d74ec08f1c3f (diff) |
Fix problems accessing the MSB interface
Change-Id: Iaddd2f2af9f8f16f7b8e9922dca9642a29e5126c
Issue-ID: VFC-1621
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-x | lcm/docker/docker-entrypoint.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lcm/docker/docker-entrypoint.sh b/lcm/docker/docker-entrypoint.sh index f791bcfc..ae9f6d7b 100755 --- a/lcm/docker/docker-entrypoint.sh +++ b/lcm/docker/docker-entrypoint.sh @@ -22,7 +22,11 @@ echo "MYSQL_ADDR=$MYSQL_ADDR" # Wait for MSB initialization echo "Wait for MSB initialization" for i in {1..5}; do - curl -sS -m 1 $MSB_ADDR > /dev/null && break + curl -sS -m 1 $MSB_PROTO:$MSB_ADDR/msb -k > /dev/null + res=$i? + if [ $res -ne 0 ]; then + break + fi sleep $i done |