:
####################################################################
#	$Id: postinstall,v 1.5 1999/06/11 17:16:03 jamesp Exp $
# 	Copyright (c) Digi, Digi International Inc.
#
#	Post-installation script for Digi EPCA Async Driver.
#	Copyright (c) 1988-96 Digi International Inc.
#
#	For HP-UX 10.X
#
#	NOTE: It is expected that the swinstall program will call this
#             script after the fileset has been copied to the system.
#				
#	      Products supported  - EPC/X, C/X, PC/Xem
#	      Platforms supported - EISA, PCI
#				
####################################################################

prod=`uname -r`
major_id=`expr "$prod" : ".*\.\([^\.]*\)\..*"`
minor_id=`expr "$prod" : ".*\.[^\.]*\.\(.*\)"`
retval=1

rm -f /etc/conf/digi/emux.o
if [ "$major_id" = "10" ]
then

	if [ "$minor_id" = "10" ]
	then
		retval=0
		cp /etc/conf/digi/emux.o.10.10.Z /etc/conf/digi/emux.o.Z
		uncompress /etc/conf/digi/emux.o.Z
	elif [ "$minor_id" = "20" ]
	then
		retval=0
		cp /etc/conf/digi/emux.o.10.20.Z /etc/conf/digi/emux.o.Z
		uncompress /etc/conf/digi/emux.o.Z
	fi

elif [ "$major_id" = "11" ]
then
	retval=0
	cp /etc/conf/digi/emux.o.11.00.Z /etc/conf/digi/emux.o.Z
	uncompress /etc/conf/digi/emux.o.Z
fi

if [ ${retval} -ne 0 ]
then
	echo "DRP: postinstall: couldn't find the appropriate driver for"
	echo "                  the operating system revision ${prod}"
fi

exit ${retval}
