head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2005.02.22.16.53.11;	author peter;	state Exp;
branches;
next	1.2;

1.2
date	2002.08.01.09.43.16;	author pooka;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.25.03.43.34;	author garbled;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Write IPv4 and IPv6 with a small 'v'.
@
text
@#!/bin/sh
# $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."
echo "---------------------------------------------------------------------------"
(for i in $INTFS
do
	ifconfig $i | grep UP >/dev/null
	if [ "$?" = "0" ]; then
		FOO=`echo "$i	up"`
	else
		FOO=`echo "$i	down"`
	fi
	INET=`ifconfig $i | grep 'media:' | awk '{ print $2 }'`
	FOO=`echo "$FOO	$INET"`
	INET=`ifconfig $i | grep 'inet ' | awk '{ print $2 }'`
	FOO=`echo "$FOO	$INET"`
	INET=`ifconfig $i | grep 'inet6' | awk '{ print $2 }'`
	FOO=`echo "$FOO	$INET"`

	echo $FOO | sed -e 's/ /	/g'
done) | sort -k2r -k1
@


1.2
log
@list network interfaces in ascending order (foo0 .. foon instead of
foon .. foo0)
@
text
@d2 1
a2 1
# $NetBSD: script,v 1.1 2001/04/25 03:43:34 garbled Exp $
d5 1
a5 1
echo "Intf#	State	Media    	IPV4 Addr.	IPV6 Addr."
@


1.1
log
@Whew.  Add an entire networking configuration tree for sushi.  This gives
sushi the ability to do the following tasks:
Edit /etc/exports
Edit /etc/hosts
Change the hostname
Modify NIC configuration
Change the default route
Setup YP/NIS.
@
text
@d2 1
a2 1
# $NetBSD$
d23 1
a23 1
done) | sort -rk 2
@

