aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-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 b9b35c0f..0e86efd0 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" -ne 1 ] && return $ret
while [ 0"$retry" -gt 0 ]; do
sleep 1