Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Development (http://www.linux-archive.org/fedora-development/)
-   -   Add 5 second ping delay for gateway and dns test on s390x (#536815). (http://www.linux-archive.org/fedora-development/315922-add-5-second-ping-delay-gateway-dns-test-s390x-536815-a.html)

David Cantrell 01-27-2010 04:46 PM

Add 5 second ping delay for gateway and dns test on s390x (#536815).
 
---
loader/linuxrc.s390 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 9d04b9d..c862a84 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -2036,7 +2036,7 @@ function configure_ipv4_gateway() {
# (virtual) CTC(/A) seems to need some time to get functional
local i=1
while : ; do
- ping -c 1 $GATEWAY >& /dev/null && break
+ ping -c 1 -w 5 $GATEWAY >& /dev/null && break
i=$((i+1))
if [ "$i" -gt 3 ]; then
echo $"Could not reach gateway $GATEWAY within timeout"
@@ -2044,7 +2044,7 @@ function configure_ipv4_gateway() {
fi
done
else
- if ! ping -c 1 $GATEWAY >& /dev/null; then
+ if ! ping -c 1 -w 5 $GATEWAY >& /dev/null; then
echo $"Could not reach your default gateway $GATEWAY"
return 1
fi
@@ -2283,7 +2283,7 @@ function handle_dns() {
# reachable by ping, so it would make sense to use nslookup.
# However, nslookup fails with "Resolver Error 0 (no error)"
# at this stage of the setup progress => not useful
- if ! ping -c 1 $dnsitem >& /dev/null; then
+ if ! ping -c 1 -w 5 $dnsitem >& /dev/null; then
echo $"Could not ping DNS server: $dnsitem"
# if nslookup $dnsitem $dnsitem >& /dev/null; then
# echo $" but could resolve DNS server with itself: $dnsitem"
--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 11:58 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.