:
#	@(#) MOUNTFSYS 1.10 89/06/16 
#
#
#	      UNIX is a registered trademark of AT&T
#		Portions Copyright 1976-1989 AT&T
#	Portions Copyright 1980-1989 Microsoft Corporation
#    Portions Copyright 1983-1989 The Santa Cruz Operation, Inc
#		      All Rights Reserved

#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 > /tmp/audit.out 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
