#! /sbin/sh
####################################################################
#	$Id: postinstall,v 1.1 1999/05/28 15:03:35 jamesp Exp $
# 	Copyright (c) Digi, Digi International Inc.
#
#	Post-installation script for Digi RealPort 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 RealPort specific "rc" scripts to /sbin/init.d,
	# rc2.d, rc3.d
	#
	rm -f /sbin/rc2.d/S555drp.daemon
	rm -f /sbin/rc1.d/K445drp.daemon
	ln -s /sbin/init.d/drp.daemon /sbin/rc2.d/S555drp.daemon
	ln -s /sbin/init.d/drp.daemon /sbin/rc1.d/K445drp.daemon

	rm -f /sbin/rc2.d/S940drp.ditty
	rm -f /sbin/rc1.d/K060drp.ditty
	ln -s /sbin/init.d/drp.ditty /sbin/rc2.d/S940drp.ditty
	ln -s /sbin/init.d/drp.ditty /sbin/rc1.d/K060drp.ditty
fi

exit 0
