# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.
#ident	"$Header: _deviceprint 1.3 89/10/10 $@(#)bnu.admin:_deviceprint	2.6"
#
#	This internal program prints device entries in
#	user readable form

if [ "$5" = "direct" ]; then
	TYPE="Direct"
else
	TYPE=$1
fi

#	don't print protocol subfield (for TLI device)
TYPE="`echo $TYPE | sed -e 's%,.*%%'`"

echo "
CALLER TYPE:	$TYPE
PORT NAME:	$2
SPEED:		$4"

if [ -n "$5" ]; then
	case $5 in
	801) echo "DIALER PORT:	$3"
	     echo "DEVICE TYPE:	$5" ;;
	ventel|penril|hayes|att2212c|att2224|att4000)
	     echo "DEVICE TYPE:	$5" ;;
	*) ;;
	esac
fi
