:
# @(#)rc5 5.3b of Jan 28, 1988
#	"Run Commands" for init state 5
#	Leaves the system in a state where it is safe to shut down the system.
#	Called via /etc/shutdown.

trap "" 15
if [ -d /etc/rc5.d ]
then
	for f in /etc/rc5.d/K*
	{
		if [ -s ${f} ]
		then
			/bin/sh ${f} stop
		fi
	}

#	system cleanup functions ONLY (things that end fast!)	

	for f in /etc/rc5.d/S*
	{
		if [ -s ${f} ]
		then
			/bin/sh ${f} start
		fi
	}
fi
/etc/killall 9
sleep 5
/etc/umountall
echo "\n The system is going down. \n"
/etc/haltsys
