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


#	"Run Commands" executed when the system is changing to init state 3,
#	Enable network services and bring up RFS.

set `who -r`
if [ $9 = "S" ]
then
	echo 'Change to init state 2 before bringing up RFS'
else
	echo 'Changing to state 3.'
	if [ -d /etc/rc3.d ]
	then
		for f in /etc/rc3.d/K*
		{
			if [ -s ${f} ]
			then
				/bin/sh ${f} stop
			fi
		}
		for f in /etc/rc3.d/S*
		{
			if [ -s ${f} ]
			then
				/bin/sh ${f} start
			fi
		}
	fi
	echo 'Change to state 3 complete'
fi

