#!/sbin/sh -
# @(#)src/unix/pagecache/sol/common/cmd/qlog/qlogboot/qlog-startup.sh	3.1 01/11/01 23:18:23 - Copyright 1991-2002
#ident "@(#)VxQLOG:src/unix/pagecache/sol/common/cmd/qlog/qlogboot/qlog-startup.sh	3.1"
 
# Copyright (c) 2000 VERITAS Software Corporation. ALL RIGHTS RESERVED.
# UNPUBLISHED -- RIGHTS RESERVED UNDER THE COPYRIGHT
# LAWS OF THE UNITED STATES. USE OF A COPYRIGHT NOTICE
# IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
# OR DISCLOSURE.
#
# THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND
# TRADE SECRETS OF VERITAS SOFTWARE. USE, DISCLOSURE,
# OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
# EXPRESS WRITTEN PERMISSION OF VERITAS SOFTWARE.
#
#		RESTRICTED RIGHTS LEGEND
# USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT IS
# SUBJECT TO RESTRICTIONS AS SET FORTH IN SUBPARAGRAPH
# (C) (1) (ii) OF THE RIGHTS IN TECHNICAL DATA AND
# COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013.
#		VERITAS SOFTWARE
# 1600 PLYMOUTH STREET, MOUNTAIN VIEW, CA 94043
# 
# Patent pending
#
 
PATH=/opt/VRTSvxfs/sbin:/etc/fs/vxfs:$PATH

qlogrec -s
qlogck
ret=$?

if [ $ret -gt 0 ];
then
	echo "
The QuickLog routine 'qlogck' encountered the errors mentioned above. It is
recommended that you enter the maintenance shell and attempt to correct
these problems. Once all possible corrections have been made, enter
Control-d to exit the maintenance shell, and initialization will resume.
See qlogck(1M) for assistance.
"
	/sbin/sulogin < /dev/console
	echo
	echo "Resuming initialization"
	echo
	qlogck -f
fi

qlogattach -ar

exit 0
