#!/bin/bash

export HPSSADU_BIN_INSTALLATION_DIR=/opt/hp/hpssaducli/bin/

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