#	START NEW ARIX SCCS HEADER
#
#	@(#) bcheckrc.sh: version 25.1 created on 12/2/91 at 15:46:38
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	ident	"@(#)bcheckrc.sh	25.1	12/2/91 Copyright (c) 1990 by Arix Corporation"
#
#	END NEW ARIX SCCS HEADER
#

trap "" 2


if [ -b /dev/root ]
then
	rootfs=/dev/root
else
	set - `/etc/devnm /`
	rootfs=$1
fi

/etc/fsstat ${rootfs} > /dev/null 2>&1

if [ $? -ne 0 ]
then
	echo "
	fsstat: root file system needs checking
        The root file system (${rootfs}) is being checked automatically."
	/etc/fsck -y -D -b -r ${rootfs}
fi


/etc/devnm / | /bin/grep -v swap | /etc/setmnt	# put root into mount table


/bin/rm -f /etc/.madeunix	# remove node indicating mkunix done

