15 lines
535 B
Plaintext
15 lines
535 B
Plaintext
|
#!/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
|