diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2016-08-12 21:01:51 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2016-08-12 21:33:12 +0200 |
commit | 0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e (patch) | |
tree | bbd9f67864e1fba2793789541c1fb64233d23fe8 /sys-block/hpssacli/files/hpssacli-wrapper | |
parent | licenses: Add Hewlett Packard Enterprise (HPE) End User License Agreement (diff) | |
download | gentoo-0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e.tar.gz gentoo-0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e.tar.bz2 gentoo-0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e.zip |
sys-block/hpssacli: New package
The HPE Smart Storage Administrator CLI (HPE SSACLI) is a commandline-based
disk configuration program that helps you configure, manage, diagnose, and
monitor HPE ProLiant Smart Array Controllers and now other storage devices
as well, such as host bus adapters (HBAs), HPE Storage controllers, and
future devices such as SCSI Express drives, and SAS switch devices. HPE
SSACLI replaces the existing HP Array Configuration CLI Utility, or ACUCLI,
with an updated design and will deliver new features and functionality for
various Smart Storage initiatives as they come online.
Gentoo-Bug: https://bugs.gentoo.org/476640
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-block/hpssacli/files/hpssacli-wrapper')
-rw-r--r-- | sys-block/hpssacli/files/hpssacli-wrapper | 22 |
1 files changed, 22 insertions, 0 deletions
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}" "${@}" |