diff options
-rw-r--r-- | sysconfig/network-scripts/network-functions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index fdf12519..e53270d2 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -336,7 +336,10 @@ is_available_wait () local retry=${2##*[!0-9]*} - is_available $1 && return 0 + is_available $1 + ret=$? + + [ 0"$ret" -gt 0 ] && return $ret while [ 0"$retry" -gt 0 ]; do sleep 1 |