#!/bin/ksh
#
# Copyright (c) 2004 by Sun Microsystems, Inc.
# All rights reserved
#
# "@(#)postpatch	1.2  04/08/24 SMI"
#
# The nettr.sh script is no longer used as a script for the nettr when using
# trunking driver trslm 1.36.
# It is neccesary to remove the shell commands and variables to prevent
# error messages when booting.

NETTR=$ROOTDIR/etc/opt/SUNWconn/trunking/bin/nettr.sh

if [ -f $NETTR ]; then
	# check if nettr.sh has already been modified

	grep "BASEDIR=" $NETTR >/dev/null 2>&1
	if [ $? -eq 0 ]; then #check if already modified

	   # if not then delete the shell commands/variables and change
	   # the examples to reflect correct syntax order 
	   sed -e '/^BASEDIR=/d' -e '/^BINDIR=/d' -e '/^PATH=/d' -e '/^export/d' -e '/^echo/d' -e 's/device=qfe policy=1 members=0,1,2,3/device=qfe members=0,1,2,3 policy=1/g' -e 's/device=ge policy=1 members=0,1/device=ge members=0,1 policy=1/g' $NETTR > /tmp/nettr.sh

	   cp /tmp/nettr.sh $NETTR
	fi
fi


exit 0
