aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown-eth
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-05-25 13:25:55 +0200
committerDee'Kej <deekej@linuxmail.org>2017-05-25 14:10:20 +0200
commit1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5 (patch)
treeda8503a85b357faba6836e10c3f91394628abb02 /sysconfig/network-scripts/ifdown-eth
parent4b0db77c17ce8c29709587bdcc88927a9d5ee651 (diff)
downloadinitscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar
initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar.gz
initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar.bz2
initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.tar.xz
initscripts-1d039be1e7ed54bca38a2ba290bb4b6a027dd3d5.zip
Replace usleep(1) calls with sleep(1) calls
The time units had to be manually converted from microseconds to seconds. Hopefully this was done right.
Diffstat (limited to 'sysconfig/network-scripts/ifdown-eth')
-rwxr-xr-xsysconfig/network-scripts/ifdown-eth2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-eth b/sysconfig/network-scripts/ifdown-eth
index 7ccbddf1..040d52d8 100755
--- a/sysconfig/network-scripts/ifdown-eth
+++ b/sysconfig/network-scripts/ifdown-eth
@@ -159,7 +159,7 @@ fi
# wait up to 5 seconds for device to actually come down...
waited=0
while ! check_device_down ${DEVICE} && [ "$waited" -lt 50 ] ; do
- usleep 10000
+ sleep 0.01
waited=$(($waited+1))
done