Subject: Re: checking
To: None <tech-net@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-net
Date: 12/20/1999 12:14:24
In article <25267.945690391@coconut.itojun.org>,  <itojun@iijlab.net> wrote:
>	- use /sbin/ifconfig and some other tools.  I may need grep, head, tail
>	  and some other things but they are in /usr.

A little cheesy but:

ifconfig lo0 inet6 > /dev/null 2>&1
if [ $? != 0 ]
then
	echo "No ipv6 support"
else
	echo "Found ipv6 support"
fi

christos