#!/bin/bash

export SSADU_BIN_INSTALLATION_DIR=/opt/smartstorageadmin/ssaducli/bin/

if [ '/usr/bin/tty -s' -o "$HPLSPINSTALL" = "TRUE" ]; then
   ${SSADU_BIN_INSTALLATION_DIR}ssaducli $*
else
   /usr/bin/X11/xterm -T xterm -hold -e ${SSADU_BIN_INSTALLATION_DIR}ssaducli $* 
   if [ "$?" != 0 ]; then
      exec ${SSADU_BIN_INSTALLATION_DIR}ssaducli $* 2>/dev/null|cat > /dev/null
   fi
fi
