postremove revision 7c478bd95313f5f23a4c958a745db2134aa03244
342N/A# The contents of this file are subject to the terms of the 342N/A# Common Development and Distribution License, Version 1.0 only 342N/A# (the "License"). You may not use this file except in compliance 342N/A# See the License for the specific language governing permissions 342N/A# and limitations under the License. 342N/A# When distributing Covered Code, include this CDDL HEADER in each 342N/A# If applicable, add the following below this CDDL HEADER, with the 342N/A# fields enclosed by brackets "[]" replaced with your own identifying 1472N/A# information: Portions Copyright [yyyy] [name of copyright owner] 342N/A# ident "%Z%%M% %I% %E% SMI" 342N/A# SUNWpd postremove script 342N/A# Copyright (c) 1995,1999-2000 by Sun Microsystems, Inc. 342N/Atrap "rm -f /tmp/$$.*;exit 1" 1 2 3 13 15 342N/A# removes major numbers from system for device drivers 342N/A# rem_major name1 name2 name3 name4 .... 342N/ANR == 1 {n=split(namelist,x) 342N/A# removes minor permissions from system for device drivers 342N/A# rem_minor name1 name2 name3 name4 .... 342N/A# rem_minor 'sd:*' 'sd:a' 342N/AFILENAME != "-" {permtab[$1] = $0;next} 342N/A printf("Bad name:minor pair: %s, skipping.\n", $1) 342N/A print permtab[$1] >> permdel 616N/A# rem_devlink spec1 spec2 spec3 spec4 ... 616N/A# <devfs-spec> <dev-name> <dev-link> 342N/AFILENAME != "-" {devlinktab[$1] = $0;next} 342N/AFILENAME == "-" {if ($1 in devlinktab) 342N/A print devlinktab[$1] >> devlinktmp 545N/A# removes entries to driver_aliases file 342N/A# rem_drv_alias spec1 spec2 spec3 342N/AFILENAME != "-" {drvalias[$1] = $0;next} 342N/AFILENAME == "-" {if ($1 in drvalias) 342N/A print drvalias[$1] >> drvaliastmp 545N/A# Remove drivers if installed