#! /bin/sh # ident "%Z%%M% %I% %E% SMI" # SUNWifp preremove script # Copyright (c) 1998 by Sun Microsystems, Inc. # All rights reserved. grep -v '^name="ssd".*parent="ifp"' $BASEDIR/kernel/drv/ssd.conf \ > $BASEDIR/tmp/$PKGINST.$$ 2> /dev/null if [ $? -eq 0 ] ; then mv $BASEDIR/tmp/$PKGINST.$$ $BASEDIR/kernel/drv/ssd.conf fi grep -v '^name="ses".*parent="ifp"' $BASEDIR/kernel/drv/ses.conf \ > $BASEDIR/tmp/$PKGINST.$$ 2> /dev/null if [ $? -eq 0 ] ; then mv $BASEDIR/tmp/$PKGINST.$$ $BASEDIR/kernel/drv/ses.conf fi # Remove driver /usr/sbin/rem_drv -b ${BASEDIR} ifp /usr/bin/rm $BASEDIR/tmp/$PKGINST.$$ >/dev/null 2>&1 exit 0