#!/bin/sh
#
# Copyright (c) 2000, by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)postremove__4335007.sh 1.1   00/06/28 SMI"
#

# Only run this script if this is a Netra ct machine.

if [ `uname -i` != "SUNW,UltraSPARC-IIi-Netract" ] 
then
	exit 0
fi

# Echo the special Install Instructions
echo "*********** SPECIAL INSTALLATION INSTRUCTIONS ***********"
echo "To complete the removal of this patch,"
echo "run the 'rscadm' command to download the old"
echo "firmware image to the flash of the Alarm Card."
echo "example# cd /usr/platform/SUNW,UltraSPARC-IIi-Netract/rsc"
echo "example# ./rscadm download ../lib/images/rscfw"
echo ""
echo "After the download has completed, the Alarm Card will"
echo "reboot itself.  The Alarm Card reboot & self-tests take"
echo "approximately 40 seconds, afterwhich time, the Alarm Card"
echo "will be available for use."
echo "*********** SPECIAL INSTALLATION INSTRUCTIONS ***********"
# Bug #4335007  postinstall script


# Modify /etc/iu.ap, by removing the entry for the Netra ct se device
# that communicates with the Alarm Card
if /bin/fgrep -s "	se	16384	16385	ldterm ttcompat" /etc/iu.ap ; then
    echo "Deleting the entry for Bug# 4335007 from /etc/iu.ap."
    /bin/grep -v "	se	16384	16385	ldterm ttcompat" /etc/iu.ap > /tmp/iu.ap 
    mv /tmp/iu.ap /etc/iu.ap
    exit 0
else
    echo "Entry for Bug# 4335007 not present in /etc/iu.ap."
fi



