postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
#! /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}