postinstall revision d8d4fa8f33f737d82c7dcd7ddd11b4342ce4fbca
431N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
431N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
431N/A# This function will check if the module has an entry in etc/name_to_major
shift `/usr/bin/expr $OPTIND - 1`
drvname=`echo $drvname | /usr/bin/sed 's;.*/;;g'`
echo "$drvname $i" >> $basedir/etc/driver_aliases
echo "$drvname\t$class" >> $basedir/etc/driver_classes
echo $minorentry >> $basedir/etc/minor_perm
# The following clone device/dev is needed for Custom Jumpstart
CLONE_DEVICE=devices/pseudo/clone@0:$drvname
ln -s ../$CLONE_DEVICE $basedir/dev/$drvname
# Update /etc/driver_classes for drivers which change from class
{ printf "%s\t%s\n", $1, $2 }' ${BASEDIR}/etc/driver_classes > /tmp/d.$$
cp /tmp/d.$$ ${BASEDIR}/etc/driver_classes