hpacucli/amd64/usr/sbin/hpacucli
2016-05-20 22:34:06 +02:00

15 lines
505 B
Bash
Executable File

#!/bin/sh
PROCESSES=`ps -e|grep "\.hpacucli" |grep -v grep`
if [ "$PROCESSES" != "" ]; then
echo "Another instance of hpacucli is running! Stop it first."
exit 1;
fi
HPACUCLI_BIN_INSTALLATION_DIR=/opt/compaq/hpacucli/bld/
export LD_LIBRARY_PATH=$HPACUCLI_BIN_INSTALLATION_DIR
${HPACUCLI_BIN_INSTALLATION_DIR}mklocks.sh hpacucli
if [ `uname -m` = "ia64" ]; then
/usr/bin/prctl --unaligned=silent $HPACUCLI_BIN_INSTALLATION_DIR.hpacucli $*
else
$HPACUCLI_BIN_INSTALLATION_DIR.hpacucli $*
fi