Merge "Retry link check up to 10 times."
This commit is contained in:
commit
85bb142641
1 changed files with 1 additions and 1 deletions
|
@ -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
|
ip link set dev $interface up >/dev/null 2>&1
|
||||||
HAS_LINK="$(get_if_link $interface)"
|
HAS_LINK="$(get_if_link $interface)"
|
||||||
|
|
||||||
TRIES=3
|
TRIES=10
|
||||||
while [ "$HAS_LINK" == "0" -a $TRIES -gt 0 ]; do
|
while [ "$HAS_LINK" == "0" -a $TRIES -gt 0 ]; do
|
||||||
HAS_LINK="$(get_if_link $interface)"
|
HAS_LINK="$(get_if_link $interface)"
|
||||||
if [ "$HAS_LINK" == "1" ]; then
|
if [ "$HAS_LINK" == "1" ]; then
|
||||||
|
|
Loading…
Reference in a new issue