2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-12 18:59:06 +00:00

Extend timeout waiting for 'right' device

Some devices come up very slowly.
This commit is contained in:
Jarrod Johnson 2020-08-11 16:29:30 -04:00
parent 4cd7714099
commit 679f2cbf1c

View File

@ -35,7 +35,7 @@ fi
TRIES=0
touch /etc/confluent/confluent.info
cd /sys/class/net
while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 15 ]; do
while ! grep ^EXTMGRINFO: /etc/confluent/confluent.info | awk -F'|' '{print $3}' | grep 1 >& /dev/null && [ "$TRIES" -lt 30 ]; do
TRIES=$((TRIES + 1))
for i in *; do
ip link set $i up