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
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# 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
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# and limitations under the License.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# 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# ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Copyright (c) 1999 by Sun Microsystems, Inc.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# All rights reserved.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# manipulate the vold.conf and rmmount.conf configurations file
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterif test -f $FILE ; then
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater # add the entries to vold.conf
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater # label dos label_dos.so floppy pcmem <--- NEW ADD
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User # label cdrom label_cdrom.so cdrom
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater # label sun label_sun.so floppy pcmem <--- NEW ADD
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User # add the line of "use pcmem drive ..." after following lines:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont # "use cdrom drive ..."
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews # "use floppy drive ..."
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User # Default adding after this line
89623368b8f662d458d9964b923050f33c5f75b0Tinderbox User 'use pcmem drive /dev/rdsk/c*s2 dev_pcmem.so pcmem%d forceload=true'
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterif test -f $FILE ; then
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater # add the new pcmem entries to rmmount.conf
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater # Note the spaces in here --v
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson add_token "$FILE" 'ident_ufs.so' ' pcmem'
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater add_token "$FILE" 'ident_pcfs.so' ' pcmem'
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updatergrep '^pcmem\>' ${BASEDIR}/etc/name_to_major > /dev/null && \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updateradd_drv -b ${BASEDIR} -n -m '* 0666 bin bin' \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater -i '"pccard,memory" "pccard1c,40"' pcmem \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssongrep '^pcram\>' ${BASEDIR}/etc/name_to_major > /dev/null && \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox Useradd_drv -b ${BASEDIR} -n -m '* 0666 bin bin' pcram \