:
#      @(#)lo0	5.4.1.1 Lachman System V STREAMS TCP  source
#      SCCS IDENTIFICATION
#
#	System V STREAMS TCP - Release 4.0
#
#	Copyright 1987, 1988, 1989 Lachman Associates, Incorporated (LAI)
#
#	All Rights Reserved.
#
#	The copyright above and this notice must be preserved in all
#	copies of this source code.  The copyright above does not
#	evidence any actual or intended publication of this source
#	code.
#
#	This is unpublished proprietary trade secret source code of
#	Lachman Associates.  This source code may not be copied,
#	disclosed, distributed, demonstrated or licensed except as
#	expressly authorized by Lachman Associates.
#
#	System V STREAMS TCP was jointly developed by Lachman
#	Associates and Convergent Technologies.
#
#
: ${OK=0} ${FAIL=1} ${RELINK=2}
PATH=/bin:/usr/bin:/etc:/etc/conf/bin

LOWER_PRD=$1
LOWER_IF=$2
UPPER_PRD=$3
UPPER_IF=$4
CONFIGURE=$5

##############################################################################
#
# main() - Dummy driver for loopback - Removal
#
trap "exit $FAIL" 1 2 3 15

# Check to see if this is the last driver configured under sco_tcp
# If n_tcps=0 then netconfig is backing out hence don't give error
n_tcps=`netconfig -s | grep "^sco_tcp" | wc -l`
if [ $n_tcps -gt 1 ] ; then
	echo "\nError: Loopback driver must be the last sco_tcp driver removed."
	exit $FAIL
fi
echo "lo0 removal complete.\n"
exit $OK
