#!/sbin/sh
#
# Copyright (c) 1995 Interphase Corp.
#
# 4811 Seahawk script to create device nodes

PATH=/sbin:/usr/sbin:/usr/bin
export PATH
rval=0

umask 022

case $1 in
start_msg)
	echo "Create Seahawk devices "
	;;

stop_msg)
	echo "Stopping Seahawk "
	;;

'start')
	rm -f /dev/seah*

	/sbin/mksf -d seah -m 0 -q -r /dev/seah0

	if [ "$?" != 0 ]
	then
		rval=1
		break 
	fi

	/sbin/mksf -d seah -m 1 -q -r /dev/seah1
	/sbin/mksf -d seah -m 2 -q -r /dev/seah2
	/sbin/mksf -d seah -m 3 -q -r /dev/seah3

	#
	# Check for correct OS revision (> 10.0) and install SNMP subagent
	# Currently started in /etc/inittab, see UGRMF16-000,REVD
    #
    #	OSREV=`uname -r`
    #
    #	if [ "$OSREV" != "B.10.00" ]
    #	then
    #		$SEAHAGT &
    #	fi
	;;

'stop')
	#
	# Determine PID of process(es) to stop
	#
	;;

*)
	echo "usage: $0 {start|stop}"
	;;
esac

exit $rval
