Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/sushi/network/interfaces/listif list network interface...
details: https://anonhg.NetBSD.org/src/rev/076c428d7cea
branches: trunk
changeset: 534667:076c428d7cea
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Aug 01 09:43:16 2002 +0000
description:
list network interfaces in ascending order (foo0 .. foon instead of
foon .. foo0)
diffstat:
share/sushi/network/interfaces/listif/script | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 670503f4b1b1 -r 076c428d7cea share/sushi/network/interfaces/listif/script
--- a/share/sushi/network/interfaces/listif/script Thu Aug 01 09:03:50 2002 +0000
+++ b/share/sushi/network/interfaces/listif/script Thu Aug 01 09:43:16 2002 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: script,v 1.1 2001/04/25 03:43:34 garbled Exp $
+# $NetBSD: script,v 1.2 2002/08/01 09:43:16 pooka Exp $
INTFS=`ifconfig -l | sed -e \
's/lo.//g;s/strip.//g;s/tun.//g;s/ipip.//g;s/eon.//g;s/gre.//g;s/gif.//g'`
echo "Intf# State Media IPV4 Addr. IPV6 Addr."
@@ -20,4 +20,4 @@
FOO=`echo "$FOO $INET"`
echo $FOO | sed -e 's/ / /g'
-done) | sort -rk 2
+done) | sort -k2r -k1
Home |
Main Index |
Thread Index |
Old Index