2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +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:
Jarrod Johnson 2020-06-30 18:39:29 -04:00
parent 8f9e4ea205
commit 27a2a58ea1

View File

@ -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