postremove revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER START
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# The contents of this file are subject to the terms of the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Common Development and Distribution License, Version 1.0 only
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# (the "License"). You may not use this file except in compliance
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# with the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# See the License for the specific language governing permissions
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# and limitations under the License.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# CDDL HEADER END
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt#ident "%Z%%M% %I% %E% SMI"
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# Copyright (c) 1994 by Sun Microsystems, Inc.
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# remove the volume management device (and the symlink to it)
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# the volctl device
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# find where the deivce points
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Huntif [ -h "$sdev" ] ; then
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt # the symlink exists
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt # get the symlink value
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt # convert the symlink value into an absolute path
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt # now remove it
28a4d32b05736e13299fb10c6c0addfa88c3cf87Evan Hunt# now remove the volctl device (or symlink)