Home | History | Annotate | Download | only in SUNWagp
      1 #! /bin/sh
      2 #
      3 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
      4 # Use is subject to license terms.
      5 #
      6 #ident	"%Z%%M%	%I%	%E% SMI"
      7 #
      8 # SUNWagp preremove script
      9 
     10 PATH=/usr/bin:/usr/sbin:${PATH}
     11 export PATH
     12 
     13 EXIT=0
     14 
     15 not_installed() {
     16 	driver=$1
     17 	grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
     18 	if [ "$?" -eq 0 ]; then
     19 		return 1
     20 	else
     21 		return 0
     22 	fi
     23 }
     24 
     25 case "${ARCH}" in
     26 	i386)
     27 		not_installed agpgart || rem_drv -b ${BASEDIR} agpgart || \
     28 			EXIT=1
     29 		not_installed agptarget || rem_drv -b ${BASEDIR} agptarget || \
     30 			EXIT=1
     31 		not_installed amd64_gart || \
     32 			rem_drv -b ${BASEDIR} amd64_gart || EXIT=1
     33 	;;
     34 esac
     35 
     36 exit ${EXIT}
     37