Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst replace "/sbin/ping -c 2 %s" with "/sb...



details:   https://anonhg.NetBSD.org/src/rev/b8c046f24691
branches:  trunk
changeset: 473969:b8c046f24691
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Jun 24 00:16:49 1999 +0000

description:
replace "/sbin/ping -c 2 %s" with "/sbin/ping -v -c 5 -w 5 -o -n %s".
Shouldn't bother doing DNS lookups or wait a really long time,
should display verbose output and quit after the host has been
successfully pinged even once.  count bumped up to 5 to give boards
which take a while to do media autoselection time to do their thing.

diffstat:

 distrib/utils/sysinst/net.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r aa6fe007e5ca -r b8c046f24691 distrib/utils/sysinst/net.c
--- a/distrib/utils/sysinst/net.c       Wed Jun 23 23:48:28 1999 +0000
+++ b/distrib/utils/sysinst/net.c       Thu Jun 24 00:16:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: net.c,v 1.51 1999/06/23 22:55:14 cgd Exp $     */
+/*     $NetBSD: net.c,v 1.52 1999/06/24 00:16:49 cgd Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -418,12 +418,12 @@
 
        if (strcmp(net_namesvr, "") != 0 && network_up)
                network_up = !run_prog(0, 1, NULL, 
-                   "/sbin/ping -c 2 %s",
+                   "/sbin/ping -v -c 5 -w 5 -o -n %s",
                                        net_namesvr);
 
        if (strcmp(net_defroute, "") != 0 && network_up)
                network_up = !run_prog(0, 1, NULL, 
-                   "/sbin/ping -c 2 %s",
+                   "/sbin/ping -v -c 5 -w 5 -o -n %s",
                                        net_defroute);
        fflush(NULL);
 



Home | Main Index | Thread Index | Old Index