#! /sbin/sh
#
#ident	"@(#)cvc.sh	1.16	00/11/06 SMI"
#
# Copyright (c) 1999-2000 by Sun Microsystems, Inc.
# All rights reserved.
#
# Startup script for Network Based Console I/O
#

case "$1" in
'start')
	platform=${_INIT_UTS_PLATFORM:-`/sbin/uname -i`}
	starfire="SUNW,Ultra-Enterprise-10000"
	starcat="SUNW,Sun-Fire-15000" 
	if [ ${platform} = "${starfire}" -o ${platform} = "${starcat}" ]; then
		if [ -x /platform/${platform}/lib/cvcd ]; then 
			/platform/${platform}/lib/cvcd
		fi
	fi
	;;

'stop')
	/usr/bin/pkill -9 -x -u 0 cvcd
	;;

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