summaryrefslogtreecommitdiffstats
path: root/zte/vmanager/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'zte/vmanager/docker/docker-entrypoint.sh')
-rwxr-xr-xzte/vmanager/docker/docker-entrypoint.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/zte/vmanager/docker/docker-entrypoint.sh b/zte/vmanager/docker/docker-entrypoint.sh
index 38eb4666..0081696d 100755
--- a/zte/vmanager/docker/docker-entrypoint.sh
+++ b/zte/vmanager/docker/docker-entrypoint.sh
@@ -17,7 +17,11 @@ echo "MSB_ADDR=$MSB_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