Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2000 16:14:49 -0600
From:      Chris Costello <chris@calldei.com>
To:        Yoshinobu Inoue <shin@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc rc.network6 rc src/etc/defaults rc.conf
Message-ID:  <20000223161449.A12338@holly.calldei.com>
In-Reply-To: <200002231805.KAA97907@freefall.freebsd.org>
References:  <200002231805.KAA97907@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii

On Wednesday, February 23, 2000, Yoshinobu Inoue wrote:
>   Initial version created by, and kindly much tested by:
>   	bmah@CA.Sandia.GOV (Bruce A. Mah)

   Consider applying the attached diff in order to solve the
following problems:

- Gratuitous, unnecessary use of awk.
- A comment nit.

-- 
|Chris Costello <chris@calldei.com>
|Exclusive: We're the only ones who have the documentation.
`----------------------------------------------------------

--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii
Content-Description: net6.diff
Content-Disposition: attachment; filename="net6.diff"

Index: rc.network6
===================================================================
RCS file: /home/ncvs/src/etc/rc.network6,v
retrieving revision 1.1
diff -u -r1.1 rc.network6
--- rc.network6	2000/02/23 18:05:57	1.1
+++ rc.network6	2000/02/23 22:10:30
@@ -1,8 +1,8 @@
 #! /bin/sh
 # $FreeBSD: src/etc/rc.network6,v 1.1 2000/02/23 18:05:57 shin Exp $
 
-# Note that almost all of the user-configurable behavior is no longer in
-# this file, but rather in /etc/defaults/rc.conf.  Please check that file
+# Note that almost all of the user-configurable behavior is not in this
+# file, but rather in /etc/defaults/rc.conf.  Please check that file
 # first before contemplating any changes here.  If you do need to change
 # this file for some reason, we would like to know about it.
 
@@ -55,7 +55,7 @@
 		for i in $ipv6_network_interfaces; do
 			ifconfig $i up
 		done
-		sleep `sysctl net.inet6.ip6.dad_count | awk '{print $NF}'`
+		sleep `sysctl -n net.inet6.ip6.dad_count`
 		sleep 1
 
 		# setting up interfaces
@@ -97,7 +97,7 @@
 		done
 
 		# again, wait for DAD's completion (for global addrs)
-		sleep `sysctl net.inet6.ip6.dad_count | awk '{print $NF}'`
+		sleep `sysctl -w net.inet6.ip6.dad_count`
 		sleep 1
 
 		# gifconfig
@@ -168,7 +168,7 @@
 
 
 		# wait for DAD's completion (for global addrs)
-		sleep `sysctl net.inet6.ip6.dad_count | awk '{print $NF}'`
+		sleep `sysctl -n net.inet6.ip6.dad_count`
 		sleep 1
 
 		# gifconfig

--VbJkn9YxBvnuCH5J--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000223161449.A12338>