#!/bin/sh
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)postinstall	1.1	08/05/21 SMI"
#

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

if [ "${BASEDIR:=/}" != "/" ]
then
        BASEDIR_OPT="-b $BASEDIR"
fi

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

        return $?
}

if installed smp; then
        echo "smp already installed"
else
	add_drv ${BASEDIR_OPT} -m '* 0644 root sys' smp
fi

exit 0
