: $Workfile:   SecAdmin.sh  $ $Revision:   1.0  $
#**********************************************************************#
#*                                                                    *#
#* Copyright (c) 2002 by Sun Microsystems, Inc.                       *#
#* All rights reserved.                                               *#
#*                                                                    *#
#**********************************************************************#

# make sure any unexpected 'kill' in PasswordReader resets terminal echo, etc.
trap "stty icanon echo" 0

java -DEMPSECURITY=$EMPSECURITY -Djava.security.manager \
 -Djava.library.path=$EMPSECURITY/lib:$LD_LIBRARY_PATH \
 com.sun.emp.security.tools.SecAdmin $1 $2

RET=$?
if test $RET -ne 0
then echo SecAdmin command terminated with error
fi
exit $RET
