#! /sbin/sh
####################################################################
#	$Id: configure,v 1.5 2000/10/16 18:45:18 jamesp Exp $
# 	Copyright (c) Digi, Digi International Inc.
#
#	Configuration script for Digi AccelePort Driver.
#	Copyright (c) 1988-98 Digi International Inc.
#
#	For HP-UX 10.X & 11.X
#
#	NOTE: It is expected that the swinstall program will call this
#             script after the postinstall has executed, or at the
#             direction of the user via "swconfig".
#				
####################################################################

PATH=$SW_PATH
export PATH

#
# ONLY configure the "rc" scripts if we were deferred.
#
if [[ "x${SW_DEFERRED_KERNBLD}x" != "xx" ]]
then
	#
	# Add the Digi DXB "rc" scripts to /sbin/rc*.d
	# The devices should start at: 350
	# The download: 351
	# The portconfig script: 352
	# The portassist agent script: 353
	#

	rm -f /sbin/rc?.d/*dgdxb.*

        ln -s /sbin/init.d/dgdxb.devices /sbin/rc2.d/S350dgdxb.devices
        ln -s /sbin/init.d/dgdxb.devices /sbin/rc1.d/K650dgdxb.devices

        ln -s /sbin/init.d/dgdxb.download /sbin/rc2.d/S351dgdxb.download
        ln -s /sbin/init.d/dgdxb.download /sbin/rc1.d/K649dgdxb.download

        ln -s /sbin/init.d/dgdxb.pconfig /sbin/rc2.d/S352dgdxb.pconfig
        ln -s /sbin/init.d/dgdxb.pconfig /sbin/rc1.d/K648dgdxb.pconfig

        ln -s /sbin/init.d/dgdxb.agent /sbin/rc2.d/S353dgdxb.agent
        ln -s /sbin/init.d/dgdxb.agent /sbin/rc1.d/K647dgdxb.agent
fi

exit 0
