diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-09-23 10:53:32 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-10-07 14:20:35 +0200 |
commit | 82605b8b2796f578a5ea68d6eccccf0d9c5e0dd2 (patch) | |
tree | f79e5e88acfd486c870738b023e766d4faca3ffd /sysconfig/network-scripts/network-functions | |
parent | 1cd862a337f4725c53f735f0d4e82a7d49774d9c (diff) | |
download | initscripts-82605b8b2796f578a5ea68d6eccccf0d9c5e0dd2.tar initscripts-82605b8b2796f578a5ea68d6eccccf0d9c5e0dd2.tar.gz initscripts-82605b8b2796f578a5ea68d6eccccf0d9c5e0dd2.tar.bz2 initscripts-82605b8b2796f578a5ea68d6eccccf0d9c5e0dd2.tar.xz initscripts-82605b8b2796f578a5ea68d6eccccf0d9c5e0dd2.zip |
network_function: return immediately when device is present
Conflicts:
sysconfig/network-scripts/network-functions
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-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 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 |