Source-Changes-HG archive

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

[src/trunk]: src/etc hide sysctl error messages to stderr (on checking IPv6 c...



details:   https://anonhg.NetBSD.org/src/rev/1400088a9709
branches:  trunk
changeset: 474367:1400088a9709
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jul 04 12:51:30 1999 +0000

description:
hide sysctl error messages to stderr (on checking IPv6 config values)

diffstat:

 etc/netstart |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 9e6685381840 -r 1400088a9709 etc/netstart
--- a/etc/netstart      Sun Jul 04 11:46:23 1999 +0000
+++ b/etc/netstart      Sun Jul 04 12:51:30 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: netstart,v 1.59 1999/07/04 05:20:52 itojun Exp $
+#      $NetBSD: netstart,v 1.60 1999/07/04 12:51:30 itojun Exp $
 #      from: @(#)netstart      8.1 (Berkeley) 7/23/93
 
 if [ -f /etc/rc.subr ]; then
@@ -186,7 +186,7 @@
 
 # IPv6
 # Note that manual configuration can be done in the above, using ifconfig.
-dadcount=`sysctl net.inet6.ip6.dad_count | awk '{print $NF}'`
+dadcount=`sysctl net.inet6.ip6.dad_count 2>/dev/null | awk '{print $NF}'`
 if [ "x$dadcount" = "x" ]; then
        # IPv6 is not configured in the kernel.  do not bother.
 else



Home | Main Index | Thread Index | Old Index