
#	START NEW ARIX SCCS HEADER
#
#	@(#) ldrole: version 25.1 created on 12/2/91 at 17:18:38
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	@(#)ldrole	25.1	12/2/91 Copyright (c) 1990 by Arix Corporation
#
#	END NEW ARIX SCCS HEADER
#
# This shellscript will download roles to the kernel when going
# multi-user


if [ ! -f /etc/security/user_auth ]
then

	echo "\nUnable to access /etc/security/user_auth"
	echo "Returning to single user mode"
	/bin/telinit s
else

	echo "\nDownloading roles to the kernel\n"
	/etc/loadroles

	if [ $? -ne 0 ]
	then

		echo "\nDownload of roles to kernel failed."
		echo "Returning to single user mode"
		/bin/telinit s
	fi
fi
