Source-Changes-HG archive

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

[src/trunk]: src/etc use sysctl -n to get numeric result, not awk.



details:   https://anonhg.NetBSD.org/src/rev/aefaeb010cbd
branches:  trunk
changeset: 476107:aefaeb010cbd
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Sep 06 18:52:33 1999 +0000

description:
use sysctl -n to get numeric result, not awk.

diffstat:

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

diffs (20 lines):

diff -r 26a10047c46b -r aefaeb010cbd etc/netstart
--- a/etc/netstart      Mon Sep 06 18:31:45 1999 +0000
+++ b/etc/netstart      Mon Sep 06 18:52:33 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: netstart,v 1.61 1999/09/03 13:40:15 itojun Exp $
+#      $NetBSD: netstart,v 1.62 1999/09/06 18:52:33 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 2>/dev/null | awk '{print $NF}'`
+dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null`
 if [ "x$dadcount" = "x" ]; then
        # IPv6 is not configured in the kernel.  do not bother.
 else



Home | Main Index | Thread Index | Old Index