postremove revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
0N/A#!/bin/sh
2362N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License, Version 1.0 only
2362N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A#
0N/A#ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# Copyright (c) 1994 by Sun Microsystems, Inc.
0N/A#
0N/A#
0N/A# remove the volume management device (and the symlink to it)
0N/A#
0N/A
0N/A# the volctl device
0N/Asdev="$BASEDIR/dev/volctl"
0N/A
0N/A# find where the deivce points
0N/Aif [ -h "$sdev" ] ; then
0N/A
0N/A # the symlink exists
0N/A
0N/A # get the symlink value
0N/A ldev="`/bin/ls -l $sdev | awk '{print $NF}'"
0N/A
0N/A # convert the symlink value into an absolute path
0N/A rdev="`dirname $sdev`/$ldev"
0N/A
0N/A # now remove it
0N/A rm -f $rdev
0N/Afi
0N/A
0N/A# now remove the volctl device (or symlink)
0N/Arm -f "$sdev"
0N/A