#!/bin/sh
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)postbackout        1.0     02/02/01 SMI"
#

# postbackout script for S9 ttymux point patch 
#
#

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

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

EXIT=0

# Restore pcicfg soft link  
#
#
if [ -f $ROOTDIR/usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/sysevent/modules/ttymux_dr_mod.so ] ; then
	exit 0
else
	if [ -d $ROOTDIR/platform/SUNW,UltraSPARC-IIi-Netract/kernel/misc/sparcv9 ] ; then
		cd $ROOTDIR/platform/SUNW,UltraSPARC-IIi-Netract/kernel/misc/sparcv9
		ln -s ../../../../sun4u/kernel/misc/sparcv9/pcicfg.e pcicfg
	fi
fi

exit 0

