postremove revision 56f9a274cc7ca7f2d6f19959b2db143d94a4e7e0
63fd201fde27ce408cde1c73a054e401fcfb9e3bDavid Lawrence#! /usr/bin/sh
1d9ab721315555ac75e7d4f57585323909283688Andreas Gustafsson#
1d9ab721315555ac75e7d4f57585323909283688Andreas Gustafsson# CDDL HEADER START
1d9ab721315555ac75e7d4f57585323909283688Andreas Gustafsson#
63fd201fde27ce408cde1c73a054e401fcfb9e3bDavid Lawrence# The contents of this file are subject to the terms of the
ef8d97818f0d30a4e09db97af695f504b311372cMark Andrews# Common Development and Distribution License (the "License").
112d9875bf33e2382f9a986d3e58fce08f1935fcOlafur Gudmundsson# You may not use this file except in compliance with the License.
63fd201fde27ce408cde1c73a054e401fcfb9e3bDavid Lawrence#
63fd201fde27ce408cde1c73a054e401fcfb9e3bDavid Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
63fd201fde27ce408cde1c73a054e401fcfb9e3bDavid Lawrence# or http://www.opensolaris.org/os/licensing.
6af5c66df334c4e275e07b03c9b35e40dbaa4f31Andreas Gustafsson# See the License for the specific language governing permissions
519f8475ff8218e3981ae2b249eb1403da7c52f6Andreas Gustafsson# and limitations under the License.
519f8475ff8218e3981ae2b249eb1403da7c52f6Andreas Gustafsson#
edc1c60621b44fbc8131ad1542f657dd129f9a30Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
edc1c60621b44fbc8131ad1542f657dd129f9a30Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
edc1c60621b44fbc8131ad1542f657dd129f9a30Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
edc1c60621b44fbc8131ad1542f657dd129f9a30Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
41626c0997c89dcdecf67c931f0031aadd507977Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
41626c0997c89dcdecf67c931f0031aadd507977Andreas Gustafsson#
41626c0997c89dcdecf67c931f0031aadd507977Andreas Gustafsson# CDDL HEADER END
4f4e44c98f315bfadc6dded1b86b465222a83967David Lawrence#
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence#
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
464c2e4bb960d15bd60d53c3ef3ae7414b129037David Lawrence# Use is subject to license terms.
6112718b0dbb01ffbfd3fabc61e30c7e4485b0a7David Lawrence#
6112718b0dbb01ffbfd3fabc61e30c7e4485b0a7David Lawrence#
6112718b0dbb01ffbfd3fabc61e30c7e4485b0a7David Lawrence
6112718b0dbb01ffbfd3fabc61e30c7e4485b0a7David LawrenceDRV=uath
6112718b0dbb01ffbfd3fabc61e30c7e4485b0a7David LawrenceBD=${BASEDIR:-/}
6112718b0dbb01ffbfd3fabc61e30c7e4485b0a7David Lawrenceif grep -w $DRV $BD/etc/name_to_major > /dev/null 2>&1
04260c5c48d234734863f0222e207b6564cd41a8David Lawrencethen
04260c5c48d234734863f0222e207b6564cd41a8David Lawrence rem_drv -b ${BD} $DRV
04260c5c48d234734863f0222e207b6564cd41a8David Lawrence if [ $? -ne 0 ]
f479c9ff5576b3d138c7e52cfc2319b185b7ebcfDavid Lawrence then
f479c9ff5576b3d138c7e52cfc2319b185b7ebcfDavid Lawrence exit 1
f479c9ff5576b3d138c7e52cfc2319b185b7ebcfDavid Lawrence fi
6c35e4dd17e6562a6b4d106cbf1d824b9f529356David Lawrencefi
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrenceexit 0
504f7802d4c9b43db4820f496c4d00e078effa18David Lawrence