From ae28c99b5ffbf8b36ebb84699512ab940ea17ce4 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 13 Jan 2014 13:58:42 -0500 Subject: [PATCH] Retry link check up to 10 times. Updates the dhcp-all-interfaces element so that the link check tries up to 10 times. On some of my machines 3 times (seconds) doesn't appear to be quite long enough... Change-Id: Ibf7015162fc890d4de8a417b868b0301146944c0 --- .../dhcp-all-interfaces/install.d/generate-interfaces-file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh b/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh index 81804b1a..aac87182 100755 --- a/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh +++ b/elements/dhcp-all-interfaces/install.d/generate-interfaces-file.sh @@ -58,7 +58,7 @@ for interface in $(ls /sys/class/net | grep -v ^lo$) ; do ip link set dev $interface up >/dev/null 2>&1 HAS_LINK="$(get_if_link $interface)" - TRIES=3 + TRIES=10 while [ "$HAS_LINK" == "0" -a $TRIES -gt 0 ]; do HAS_LINK="$(get_if_link $interface)" if [ "$HAS_LINK" == "1" ]; then