home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
vxvm
/
root.2
/
usr
/
sbin
/
vxdiskadm
/
vxdiskadm~
Wrap
Text File
|
1998-08-19
|
3KB
|
85 lines
#!/sbin/sh -
# Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved.
#
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE
# SANTA CRUZ OPERATION INC.
#
# The copyright notice above does not evidence any actual or intended
# publication of such source code.
# @(#)cmd.vxvm:common/voladm/vxdiskadm.sh 1.2 3/3/97 03:23:43 - cmd.vxvm:common/voladm/vxdiskadm.sh
#ident "@(#)cmd.vxvm:common/voladm/vxdiskadm.sh 1.2"
# Copyright(C)1996 VERITAS Software Corporation. ALL RIGHTS RESERVED.
# UNPUBLISHED -- RIGHTS RESERVED UNDER THE COPYRIGHT
# LAWS OF THE UNITED STATES. USE OF A COPYRIGHT NOTICE
# IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
# OR DISCLOSURE.
#
# THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND
# TRADE SECRETS OF VERITAS SOFTWARE. USE, DISCLOSURE,
# OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
# EXPRESS WRITTEN PERMISSION OF VERITAS SOFTWARE.
#
# RESTRICTED RIGHTS LEGEND
# USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT IS
# SUBJECT TO RESTRICTIONS AS SET FORTH IN SUBPARAGRAPH
# (C) (1) (ii) OF THE RIGHTS IN TECHNICAL DATA AND
# COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013.
# VERITAS SOFTWARE
# 1600 PLYMOUTH STREET, MOUNTAIN VIEW, CA 94043
: ${VOLROOT_DIR:=$__VXVM_ROOT_DIR}
. ${VOL_SCRIPTS_LIB:-$VOLROOT_DIR/usr/lib/vxvm/lib}/vxcommon
VOLADM_CURRENT_MENU=
export VOLADM_CURRENT_MENU
diskadd_lockfile=${VOL_LOCK_DIR}/.DISKADD.LOCK
diskadd_lock_cleanup()
{
rm -f $diskadd_lockfile
}
if [ -f $diskadd_lockfile ]
then
export diskadd_lockfile; ewritemsg -M vxvmshm:462 \
"The vxdiskadd or vxdiskadm program is already being run and
these programs cannot run concurrently. Please retry this at a
later time. If you are certain that no other users are running
any of these programs, you can remove the file:
$diskadd_lockfile
Removing this file will allow you to run vxdiskadm.
"
exit 1
fi
add_cleanup diskadd_lock_cleanup
2> /dev/null > $diskadd_lockfile
if [ $? -ne 0 ]
then
diskadd_lockfile="$diskadd_lockfile" egettxt \
"$0: Cannot create lock file $diskadd_lockfile" \
vxvmshm:35 $0 "$@" >&2
exit 1
fi
check_exclude_files
if [ $? -ne 0 ]
then
ewritemsg -M vxvmshm:305 \
"Please correct the problem listed above before re-running vxdiskadm."
else
voladm_menu_push VolumeManager
doit "$VOLADM_BIN/disk.menu" $v_opt
fi
egettxt "\nGoodbye." vxvmshm:612
quit 0