# $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: _systemprint 1.3 89/10/10 $@(#)bnu.admin:_systemprint	2.5"
#
#	This internal program prints system entries in
#	user readable form

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

echo "
SYSTEM NAME:	$1"

case $3 in
ACU)	echo "DEVICE TYPE:	$TYPE" ;;
Develcon|Micom|Sytek) echo "DEVICE TYPE:	$TYPE" ;;
DK)	echo "DEVICE TYPE:	$TYPE" ;;
*)	echo "NETWORK NAME:	$TYPE" ;;
esac

echo "SPEED:		$4"

case $3 in
ACU)	echo "PHONE NUMBER:	$5" ;;
Develcon|Micom|Sytek) echo "SWITCH TOKEN:	$5" ;;
DK)	echo "DK NUMBER:	$5" ;;
*)	echo "ADDRESS:	$5" ;;
esac

shift 5
while [ $# -gt 0 ]
do
	if [ `expr "$1" : '.*rd[:-]'`  -ne 0 ]; then
	    echo "PASSWORD:	$2"
	    shift 2
	    continue
	fi
	if [ `expr "$1" : '.*in[:-]'`  -ne 0 ]; then
	    echo "LOGIN:		$2"
	    shift
	fi
	shift
done
