postinstall revision 74e20cfe817b82802b16fac8690dadcda76f54f5
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#!/bin/sh
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# ident "%Z%%M% %I% %E% SMI"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw# Use is subject to license terms.
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw#
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwPATH="/usr/bin:/usr/sbin:${PATH}"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwexport PATH
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwif [ "${BASEDIR:=/}" != "/" ]
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwthen
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw BASEDIR_OPT="-b $BASEDIR"
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwfi
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwnot_installed() {
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw driver=$1
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw return $?
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw}
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwEXIT=0
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwnot_installed sdpib || add_drv -b ${BASEDIR} -m '* 0644 root sys' sdpib || EXIT=1
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw
c5c4113dfcabb1eed3d4bdf7609de5170027a794nwexit $EXIT
c5c4113dfcabb1eed3d4bdf7609de5170027a794nw