mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-11-04 05:12:32 +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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user