#!/sbin/sh 
#
# Copyright (c) 1999 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident	"@(#)ncad	1.1	00/02/08 SMI"

# Default config values used by script
ncakmodconf=/etc/nca/ncakmod.conf

case "$1" in
'start')
	if [ -f $ncakmodconf ]; then
		. $ncakmodconf
		[ "x$ncad_status" = xenabled ] && /usr/lib/inet/ncad &
	fi
	;;

'stop')
	if [ -f $ncakmodconf ]; then
		. $ncakmodconf
		[ "x$ncad_status" = xenabled ] && /usr/bin/pkill -x -u 0 ncad 
	fi
	;;

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