postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User# CDDL HEADER START
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License, Version 1.0 only
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# (the "License"). You may not use this file except in compliance
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# with the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# See the License for the specific language governing permissions
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# and limitations under the License.
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# CDDL HEADER END
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User#pragma ident "%Z%%M% %I% %E% SMI"
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User# Copyright (c) 1999,2001 by Sun Microsystems, Inc.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# All rights reserved.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# add_devlink - adds an entry to ${DEVLINKTB}
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox User PLINK="`echo $LINK | sed 's/[$*^|\]/\\\&/g'`"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User grep -v "^$PATTERN $PLINK$" ${DEVLINKTB} >$TMP.devlink
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usergrep '^pcs\>' ${BASEDIR}/etc/name_to_major > /dev/null && \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User grep '^stp4020\>' ${BASEDIR}/etc/name_to_major > /dev/null && \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User add_drv -b ${BASEDIR} -n -i 'SUNW,pcmcia' -c 'pcmcia' stp4020 \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usergrep '^pcic\>' ${BASEDIR}/etc/name_to_major > /dev/null && \
9700e6d72c3ba0d0c567969ab97d9eff202656d4Tinderbox User -i '"pciclass,060500" "pciclass,060700"' pcic \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usergrep '^pem\>' ${BASEDIR}/etc/name_to_major > /dev/null && \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Useradd_drv -b ${BASEDIR} -n -m '* 0666 bin bin' pem \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# PCI-PCMCIA (generic) bridge PCI class codes
9a5087bf58f651bfff841192aba5afd06760d6ceTinderbox Useradd_devlink 'type=pcmcia:event;name=pem' 'pem'