#!/bin/sh
#
# Copyright (c) 2002 by Sun Microsystems, Inc.
#

SMCREG=${ROOTDIR}/usr/sadm/bin/smcregister
ADMIN_LIBDIR=${ROOTDIR}/usr/sadm/lib
export ROOTDIR 
LANGS='de es fr it sv ko zh zh_TW zh_HK ja'

# Register tools and services
if [ -x ${SMCREG} -a "${ROOTDIR}" = "/" -a -d "${ROOTDIR}/var/sadm/smc" ]; then
	for i in $LANGS
	do
		if [ -f ${ADMIN_LIBDIR}/volmgr/VVolMgr_${i}.jar ]; then
			${SMCREG} library -n VVolMgr_${i}.jar \
			${ADMIN_LIBDIR}/volmgr/VVolMgr_${i}.jar \
			${ADMIN_LIBDIR}/volmgr/VVolMgr_${i}_classlist.txt \
			com.sun.admin.volmgr.client.VVolMgr
		fi
	done

fi

exit 0
