#!/bin/sh
#
# ident "@(#)postinstall 1.13	01/07/12 GED"
#
DRV=afe
DRVALIAS='"pci1317,985" "pci1317,981" "pci1317,1985" "pci1317,9511" "pci1317,9513" "pci1113,1216"'
DRVPERM='* 0600 root sys'
ADD_DRV=/usr/sbin/add_drv

if [ "${BASEDIR}" = "/" ]; then
	ADD_DRV_FLAGS=
else
	ADD_DRV_FLAGS="-b ${BASEDIR}"
fi

grep "^${DRV} " $BASEDIR/etc/name_to_major 2>&1 >/dev/null
if [ $? -ne 0 ]; then
	${ADD_DRV} ${ADD_DRV_FLAGS} -m "${DRVPERM}" -i "${DRVALIAS}" ${DRV}
	if [ $? -ne 0 ]; then
		echo "postinstall: add_drv $DRV failed\n" >&2
		exit 1
	fi
fi
exit 0
