#! /sbin/sh
####################################################################
#	$Id: configure,v 1.1 1999/05/28 15:03:35 jamesp Exp $
# 	Copyright (c) Digi, Digi International Inc.
#
#	Configuration 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 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 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
