postremove revision 22a84b8d79248a611e4ba663a268d3c4bed054ac
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#! /usr/bin/sh
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# CDDL HEADER START
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# The contents of this file are subject to the terms of the
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# Common Development and Distribution License (the "License").
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# You may not use this file except in compliance with the License.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# or http://www.opensolaris.org/os/licensing.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# See the License for the specific language governing permissions
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# and limitations under the License.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# When distributing Covered Code, include this CDDL HEADER in each
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# If applicable, add the following below this CDDL HEADER, with the
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# fields enclosed by brackets "[]" replaced with your own identifying
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# information: Portions Copyright [yyyy] [name of copyright owner]
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# CDDL HEADER END
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major# Use is subject to license terms.
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major#
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major
fb379c70e3fd8a537f311b99be4759ae41e02750Peter MajorDRV=iwp
fb379c70e3fd8a537f311b99be4759ae41e02750Peter MajorBD=${BASEDIR:-/}
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorif grep -w $DRV $BD/etc/name_to_major > /dev/null 2>&1
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorthen
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major rem_drv -b ${BD} $DRV
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major if [ $? -ne 0 ]
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major then
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major exit 1
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major fi
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorfi
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Majorexit 0
fb379c70e3fd8a537f311b99be4759ae41e02750Peter Major