
#ident	"@(#)/proto/install/3.2.2 3fg19 patch/UNINSTALL.sl 2/8/90 53329 "
#
# UNINSTALL the 3.2.3 CPIO
#
# Save mount point of floppy (INSPATH) and package name (PKGNAME)
#

INSPATH=/install/new
PKGNAME=`cat $INSPATH/usr/options/*`

if [ "$PKGNAME" != "`cat /usr/options/cpio.name`" ]
then
	echo "\nERROR!!!	The $PKGNAME package is not installed!"
	exit
fi

echo "\nRemoving the $PKGNAME package"




#
# restore the files from /usr/old.
#

echo "\nThe following files are being removed:\n"

echo "/bin/cpio.3.2.3"
rm /bin/cpio.3.2.3
echo "/usr/options/cpio.name"
rm /usr/options/cpio.name

echo "\nThe following files are being restored from /usr/old:\n"
echo "/bin/cpio"
mv /usr/old/cpio /bin/cpio
chgrp bin /bin/cpio
chown bin /bin/cpio

#
# Invoke unsetup file
#

/install/install/unsetup


echo "\nThe "${PKGNAME}" package has been removed.\n"
