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

15 lines
535 B
Bash
Executable File

#!/bin/sh
PROCESSES=`ps -e|grep "\.hpacuscripting" |grep -v grep`
if [ "$PROCESSES" != "" ]; then
echo "Another instance of hpacuscripting 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 hpacuscripting
if [ `uname -m` = "ia64" ]; then
/usr/bin/prctl --unaligned=silent $HPACUCLI_BIN_INSTALLATION_DIR.hpacuscripting $*
else
$HPACUCLI_BIN_INSTALLATION_DIR.hpacuscripting $*
fi