aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-09-17 14:28:08 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-09-17 14:28:08 +0200
commit103ba529b3c9eeff973da77ea819b3117c0acd13 (patch)
treea91819c6eecb74b60b3824012ed11a562c733753
parentdf95c54b86e5f0263db61ab07a7531a91ec6848f (diff)
downloadinitscripts-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-functions5
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