mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Try more aggressively to get to 'default' network.
If a 'default' network is going to eventually link up, wait for it.
This commit is contained in:
parent
8f9e4ea205
commit
27a2a58ea1
@ -1,12 +1,14 @@
|
||||
#!/bin/sh
|
||||
[ -e /tmp/confluent.initq ] && return 0
|
||||
echo -n "" > /tmp/confluent.initq
|
||||
while ! grep MANAGER /tmp/confluent.info >& /dev/null; do
|
||||
TRIES=0
|
||||
while ! awk -F'|' '{print $3}' /tmp/confluent.info |grep 2 >& /dev/null && [ "$TRIES" -lt 60 ]; do
|
||||
TRIES=$((TRIES + 1))
|
||||
cd /sys/class/net
|
||||
for currif in *; do
|
||||
ip link set $currif up
|
||||
done
|
||||
cd -
|
||||
cd /
|
||||
/opt/confluent/bin/copernicus -t > /tmp/confluent.info
|
||||
done
|
||||
read ifidx <<EOF
|
||||
|
Loading…
Reference in New Issue
Block a user