#!/bin/sh
#
# (C) Copyright 1993, 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
#

scriptdir=/etc/rc$1.d

if [ -d $scriptdir ]; then
	# Perform any shutdowns necessary.
	for i in $scriptdir/K*
	do
		if [ -s $i ]; then
			/bin/sh $i stop
		fi
	done

	# Perform startups required for this run level.
	for i in $scriptdir/S*
	do
		if [ -s $i ]; then
			/bin/sh $i start
		fi
	done
fi 
