postinstall revision d73ae94e59c019f5cc3221ee0a0012d02091b40e
6736c640e65e06990ef33af71ee81fac4df4ff5fjim# CDDL HEADER START
85eacfc96a04547ef25aabbc06440039715084c2jorton# The contents of this file are subject to the terms of the
85eacfc96a04547ef25aabbc06440039715084c2jorton# Common Development and Distribution License (the "License").
1d8d7e58e1d31d7b6fb7a518e09649a4dbb315e9trawick# You may not use this file except in compliance with the License.
1d8d7e58e1d31d7b6fb7a518e09649a4dbb315e9trawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f34da68471f256dca0ff770257c3e1f982f74cf1trawick# See the License for the specific language governing permissions
f34da68471f256dca0ff770257c3e1f982f74cf1trawick# and limitations under the License.
8b645fd3c950da73513b546366c7cfa7476c5c06jim# When distributing Covered Code, include this CDDL HEADER in each
8b645fd3c950da73513b546366c7cfa7476c5c06jim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8b645fd3c950da73513b546366c7cfa7476c5c06jim# If applicable, add the following below this CDDL HEADER, with the
193f0bb6057d67593ed652fbf58f043def51c642jim# fields enclosed by brackets "[]" replaced with your own identifying
193f0bb6057d67593ed652fbf58f043def51c642jim# information: Portions Copyright [yyyy] [name of copyright owner]
68ba377fc3b124baa759662077c48077ebadb186minfrin# CDDL HEADER END
68ba377fc3b124baa759662077c48077ebadb186minfrin#pragma ident "%Z%%M% %I% %E% SMI"
00566fb187849626180724394a21ddcd28419fb2minfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
00566fb187849626180724394a21ddcd28419fb2minfrin# Use is subject to license terms.
92b1631880b0bf43fe8b2663a03c8571eb04e433jim# Location of usb links, and the names of the types of links to remove
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh# since ohci, uhci and ehci are self probing nexus drivers,
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh# add_drv -n hid, hubd, usb_ia and usb_mid before add_drv ohci/uhci/ehci.
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh# ohci/uhci/ehci will create the hub and usb,device nodes and attach
f5e28c78424d2f71c61ba457009f100bba38bc68chrisd# hubd, usb_mid and usb_ia drivers
f4a715f904b014060ea6237fe29481ed21f5c7d0jorton grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
985a4368b93c3e9171a57897ad9454c8dbf4cdf6jortonnot_installed hid || add_drv ${BASEDIR_OPT} -m '* 0600 root sys' \
109e2a09790de3fb315d36d6232a14ab66c8eb0ahumbedoohnot_installed hubd || add_drv ${BASEDIR_OPT} -m '* 0644 root sys' \
4be250c774bdac977eef29a02183ca78de29fb41rjung -i '"usbif,class8" "usb584,222"' -n scsa2usb || EXIT=1
12b5dc9afa1844df5ac8acab98fb538432a2fa1crjungnot_installed usb_ia || add_drv ${BASEDIR_OPT} -i '"usb,ia"' -n usb_ia ||
12b5dc9afa1844df5ac8acab98fb538432a2fa1crjungnot_installed usb_mid || add_drv ${BASEDIR_OPT} -i '"usb,device"' -n usb_mid ||
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedoohnot_installed usbprn || add_drv ${BASEDIR_OPT} -m '* 0666 root sys' \
10961a2f60207cb873d889bb28b1f0ef707a4311humbedoohnot_installed usb_ac || add_drv ${BASEDIR_OPT} -m '* 0600 root sys' \
0448378b899e8df0c060360f17c0af692adf17bchumbedoohnot_installed usb_as || add_drv ${BASEDIR_OPT} -m '* 0600 root sys' \
60a765cccbd3f3b5997b65b0034220c79f78369etrawicknot_installed ohci || add_drv ${BASEDIR_OPT} -m '* 0644 root sys' \
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohnot_installed ehci || add_drv ${BASEDIR_OPT} -m '* 0644 root sys' \
91814c869ca39ce45dfe147307d2a831cac6ecbehumbedoohnot_installed uhci || add_drv ${BASEDIR_OPT} -m '* 0644 root sys' \
79c5787b92ac5f0e1cc82393816c77a006399316trawick# Cleanup to wipe out any defunct links
79c5787b92ac5f0e1cc82393816c77a006399316trawick # ls -l shows linknames to curr dir and phys nodes relative to $LINKDIR
12b987b969f03ef98d9175a53d849ab62f5684fecovener # List all entries with devctl (will be entries pointing to phys nodes
12b987b969f03ef98d9175a53d849ab62f5684fecovener # ending with "devctl"). Delete these entries & their physical nodes.