postinstall revision 7c478bd95313f5f23a4c958a745db2134aa03244
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater# CDDL HEADER START
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# The contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Common Development and Distribution License, Version 1.0 only
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# (the "License"). You may not use this file except in compliance
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# with the License.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
b253dcf9668f95e141bce9556dc88e30d3305a1dTinderbox User# and limitations under the License.
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
89623368b8f662d458d9964b923050f33c5f75b0Tinderbox User#pragma ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Use is subject to license terms.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# In addition to the list of aliases in USBSER_EDGE_ALIASES, a
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# new alias is needed for the latest edgeport f/w revision. To
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# ensure that upgrades work we use update_drv(1M) to add this
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# new alias if the driver has already been installed
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Note that postinstall gets executed on both initial install
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt grep ${NEW_ALIAS} $BASEDIR/etc/driver_aliases > /dev/null 2>&1
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater grep "^${driver} " $BASEDIR/etc/name_to_major > /dev/null 2>&1
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews \"usbif1608,1.config1.0\" \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews \"usbif1608,3.config1.0\" \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User \"usbif1608,4.config1.0\" \
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User \"usbif1608,5.config1.0\" \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews \"usbif1608,6.config1.0\" \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater \"usbif1608,7.config1.0\" \
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater \"usbif1608,c.config1.0\" \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews \"usbif1608,d.config1.0\" \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater \"usbif1608,e.config1.0\" \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews \"usbif1608,f.config1.0\" \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater \"usbif1608,10.config1.0\" \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater \"usbif1608,11.config1.0\" \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews \"usbif1608,12.config1.0\" \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater \"usbif1608,13.config1.0\" \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews \"usbif1608,14.config1.0\" \
114f7780384371121918624ae2c80ecfce545683Tinderbox User \"usbif1608,201.config1.0\" \
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater \"usbif1608,205.config1.0\" \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews \"usbif1608,206.config1.0\" \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater \"usbif1608,207.config1.0\" \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson \"usbif1608,20c.config1.0\" \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater \"usbif1608,20d.config1.0\" \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater \"usbif1608,215.config1.0\" \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews \"usbif1608,217.config1.0\" \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater \"usbif1608,21a.config1.0\" \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson \"usbif1608,240.config1.0\" \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater \"usbif1608,241.config1.0\" \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater \"usbif1608,242.config1.0\" \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson \"usbif1608,243.config1.0\" \
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User echo "${driver} \"${NEW_ALIAS}\"" >> \
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User -i "${USBSER_EDGE_ALIASES} \"${NEW_ALIAS}\"" -n usbser_edge || \