FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 01-27-2010, 04:46 PM
David Cantrell
 
Default 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
 

Thread Tools




All times are GMT. The time now is 04:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org