diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-09-17 14:28:08 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-09-17 14:28:08 +0200 |
commit | 103ba529b3c9eeff973da77ea819b3117c0acd13 (patch) | |
tree | a91819c6eecb74b60b3824012ed11a562c733753 | |
parent | df95c54b86e5f0263db61ab07a7531a91ec6848f (diff) | |
download | initscripts-103ba529b3c9eeff973da77ea819b3117c0acd13.tar initscripts-103ba529b3c9eeff973da77ea819b3117c0acd13.tar.gz initscripts-103ba529b3c9eeff973da77ea819b3117c0acd13.tar.bz2 initscripts-103ba529b3c9eeff973da77ea819b3117c0acd13.tar.xz initscripts-103ba529b3c9eeff973da77ea819b3117c0acd13.zip |
is_available_wait: properly propage return value from is_available
-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 |