OpenSolaris_b135/pkgdefs/SUNWvia823x/postinstall

#! /bin/sh
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"%Z%%M%	%I%	%E% SMI"
#
# SUNWvia823x postinstall script

PATH=/usr/bin:/usr/sbin:${PATH}
export PATH

not_installed() {
	driver=$1
	grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
	return $?
}

EXIT=0

case "${ARCH}" in
	i386)
		not_installed audiovia823x || \
		add_drv -b "${BASEDIR}" \
			-i '"pci1106,3059"' \
			-n audiovia823x || \
		EXIT=1

	;;
esac

exit ${EXIT}