#!/bin/sh
#
# Copyright 1999 Sun Microsystems, Inc. All Rights Reserved
#
# @(#)interfaces.sh	1.4 04/17/00 Sun Microsystems, Inc.
#
#  List all plumbed interfaces
#
# Exit Codes:
#    0       success
#    1       IPv6 interface(s) found
#
set_num=139     # SI18N_INTERFACES
LS()		# localize a string
{
	msg_num=$1; shift
        if [ -x ${SS_LIBDIR}/catgets ]
        then ${SS_LIBDIR}/catgets $set_num $msg_num "$*"
        else echo "$*"
	fi
}
#
# look for and issue warning about IPv6 interfaces
#
#/usr/sbin/ifconfig -a inet6 > /dev/null 2>&1 
#if [ $? -eq 0 ]; then
#   IPV6IF=`ifconfig -a inet6 > /dev/null 2>&1`
#   if [ "$IPV6IF" != "" ]; then
#     msg=`LS 10 'SunScreen will not with IPv6 interfaces'`
#     exit 1
#   fi
#fi
#
#  BugID 4303603: install fails with IPv6 interfaces
#
/usr/sbin/ifconfig -au inet | sed -n 's/^\([^:        ]*\):.*/\1/p' | grep -v '^lo'
  
