#!/bin/sh
#
# @(#)preremove 1.24 12 Jul 1993 Copyright 1993 SMI
#
# Copyright (c) 1993 Sun Microsystems, Inc.  All Rights Reserved.
# Sun considers its source code as an unpublished, proprietary trade
# secret, and it is available only under strict license provisions.
# This copyright notice is placed here only to protect Sun in the event
# the source is deemed a published work.
#
# RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the
# Government is subject to restrictions as set forth in subparagraph
# (c)(1)(ii) of the Rights in Technical Data and Computer Software
# clause at DFARS 52.227-7013 and in similar clauses in the FAR and
# NASA FAR Supplement.
#

#
#	Restore the fcs version of the SUNW3270c pkginfo file.
#	This should be saved as pkginfo.fcs.
#

echo "preremove script beginning . . ."
echo "Restoring pkginfo file for SUNW3270c . . ."

if (test -s /var/sadm/pkg/SUNW3270c/pkginfo.fcs); then

    mv /var/sadm/pkg/SUNW3270c/pkginfo.fcs /var/sadm/pkg/SUNW3270c/pkginfo
    echo "pkginfo file has been restored."

else

  echo "fcs pkginfo file not found in /var/sadm/pkg/SUNW3270c."
  echo "preremove script was not successful."

fi

echo "End of preremove script."

