#! /sbin/sh
####################################################################
#	$Id: postinstall,v 1.6 2000/10/16 18:45:19 jamesp Exp $
# 	Copyright (c) Digi, Digi International Inc.
#
#	Post-installation 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 fileset has been copied to the system.
#				
####################################################################

PATH=$SW_PATH
export PATH

#
# If this is supposed to be handled in the postinstall (i.e. we
# haven't been deferred) then make the appropriate "rc" script
# entries.
#
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
