:
# We only want to call the start or stop routines if
# the driver is present in the booted kernel.

/usr/lib/lli/ctr/in_kernel ctr && {
	case $1 in
	start)
		/usr/lib/lli/ctr/ctr_start /usr/lib/lli/ctr/mac380.bin 0
		cp /etc/ctr /etc/rc0.d/K86ctr 2>/dev/null
		chown root /etc/rc0.d/K86ctr
		chgrp root /etc/rc0.d/K86ctr
		chmod 744 /etc/rc0.d/K86ctr
	;;

	stop)
		/usr/lib/lli/ctr/ctr_stop 0
	;;

	*)
		echo "Usage: $0 [ start | stop ]"
		exit 1
	;;
	esac
} || :
