#!/bin/ksh
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# websm720 src/sysmgt/cfgassist/com/ibm/cfgassist/apps/wsmconfig/configassist.sh 1.3 
#  
# Licensed Materials - Property of IBM 
#  
# Restricted Materials of IBM 
#  
# COPYRIGHT International Business Machines Corp. 1998,2011 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
# @(#)88	1.3  src/sysmgt/cfgassist/com/ibm/cfgassist/apps/wsmconfig/configassist.sh, cfgassist, websm720 11/10/11 03:05:15
if [[ -z "$DISPLAY" ]]; then
    ERRMSG=`/usr/bin/dspmsg -s 1 cfgassist.cat 3 "Error: DISPLAY environment variable is uninitialized"`
    echo $ERRMSG
    exit 1
fi

LOGFILE=$HOME/configassist.log

if [[ -f $LOGFILE ]]
then
    /usr/bin/rm $LOGFILE
fi

if [[ ! -f /tmp/.config_lic_not_accepted ]]; then
    touch /tmp/.config_lic_not_accepted >/dev/null 2>&1
fi

export W_HEAP_MIN_SIZE=16
export W_HEAP_INC_SIZE=4
export W_BIND_PROC=yes

#while [[ -f /tmp/.config_lic_not_accepted ]]
#do
     /usr/cfgassist/bin/wjava com.ibm.cfgassist.apps.wsmconfig.ConfigAssist > $LOGFILE 2>&1
#done