:
#	@(#) ttys_update 23.4 91/11/25 
#
#	Copyright (C) 1989-1991 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#
# This script attempts to create Terminal Control database entries
# for terminals present in the inittab file but not entered in the
# Terminal Control database.

[ "X$1" = "X-s" ] && verbose=no || verbose=yes

/tcb/bin/ale /etc/auth/system/ttys termupd
rval=$?

# ale returns 0 on success, 1 on error and 2 if no updates were required.
if [ $rval = 2 ]
then
	if [ $verbose = yes ]
	then
		echo "No terminals needed adding to the Terminal Control database"
	fi
	rval=0
fi
exit $rval
