#!/bin/sh
#
# Copyright (c) 2000, by Sun Microsystems, Inc.
# All rights reserved.
#
#ident "@(#)postremove 1.3   00/08/25 SMI"
#

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

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


# Modify /etc/iu.ap, by removing the entry for the Netra ct se device
# that communicates with the Alarm Card.  Remove both old and new
if /bin/fgrep -s "	se	16384	16384	ldterm ttcompat" /etc/iu.ap ; then
    echo "Deleting ssp entry from /etc/iu.ap."
    /bin/grep -v "	se	16384	16384	ldterm ttcompat" /etc/iu.ap > /tmp/iu.ap 
    mv /tmp/iu.ap /etc/iu.ap
    exit 0
fi


if /bin/fgrep -s "	se	16384	16385	ldterm ttcompat" /etc/iu.ap ; then
    echo "Deleting sspctl entry 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
fi


