#! /bin/sh
#
# script to be run on Solaris 9 systems only.
# will fix up the libscsi.so link in /usr/lib/nsr 
# 
# will exit if non Solaris 9 environment is detected
# or if libscsi27.so.1 does not exist.
#
case "`uname -r`" in
5.9)	# Solaris 9 
	MYOS=sol27
	;;
*)	#all else
	echo "Detected non Solaris 9 OS. Program exiting." 
	exit
	;;
esac

#
# test for existance of libscsi27.so.1
# if no libscsi27.so.1, exit...
#

cd /usr/lib/nsr

if test -r libscsi27.so.1
then
	rm -f libscsi.so
	mv -f libscsi.so.1 libscsi251.so.1
#
#	will perform a copy so libscsi27.so.1
#	will always exist
#
	cp -f libscsi27.so.1 libscsi.so.1
	ln -s libscsi.so.1 libscsi.so
else
	echo "Program cannot locate needed files. Program exiting."
fi
	
exit 0  # installation succesful
