From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-block/hpssacli/files/hpssacli-wrapper | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sys-block/hpssacli/files/hpssacli-wrapper (limited to 'sys-block/hpssacli/files') diff --git a/sys-block/hpssacli/files/hpssacli-wrapper b/sys-block/hpssacli/files/hpssacli-wrapper new file mode 100644 index 000000000000..2e425f719e20 --- /dev/null +++ b/sys-block/hpssacli/files/hpssacli-wrapper @@ -0,0 +1,22 @@ +#!/bin/sh + +# +# Uncomment the line below to turn off discovery of Fibre +# export INFOMGR_BYPASS_FIBRE=1 +# +# Uncomment the lines below to turn off discovery of Non-Smart Array controllers +# export INFOMGR_BYPASS_NONSA=1 +# + +cmd="$(basename "$0")" + +HPSSACLI_BASEDIR="/opt/hp/hpssacli" +HPSSACLI_BIN="${HPSSACLI_BASEDIR}/${cmd}.bin" + +if pgrep --exact "${cmd}.bin" 1>/dev/null; then + echo "Another instance of ${cmd} is running! Stop it first." + exit 1 +fi + +export LD_LIBRARY_PATH="${HPSSACLI_BASEDIR}" +"${HPSSACLI_BIN}" "${@}" -- cgit v1.2.3