:
#	@(#) MOUNTFSYS 23.4 91/08/29 
#
#	Copyright (C) 1988-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.
#
#ident	"@(#)initpkg:init.d/MOUNTFSYS	1.5"

# Begin SCO_BASE

set `who -r`
if [ "$9" = "S" ]
then
	cd /
	[ -x "/etc/mountall" ] && /etc/mountall $AUTOFLAG	
	
	# Notify Audit Subsystem of Filesystem Mounts
	[ -x /tcb/bin/auditcmd ] &&
	/tcb/bin/auditcmd -q -m
	
	# Initiate the Audit Daemon
	[ -x /tcb/bin/auditd ] &&
	/tcb/bin/auditd -n </dev/console >/dev/console 2>&1
	
	[ -d /etc/rc.d ] && {
		for d in /etc/rc.d/2*
		do
			[ -d "$d" ] && {
				for f in $d/*
				do
					[ ! -d $f -a -x $f ] && $f
				done
			}
		done
	}
fi
# End SCO_BASE
