1 |
flameeyes 12/12/01 21:02:00 |
2 |
|
3 |
Added: hpacucli-wrapper |
4 |
Removed: hpacucli hpacucli-setarch |
5 |
Log: |
6 |
Version bump (thanks to Oleg Gawriloff and Robert Varga in bug #420115); drop wrong hardened USE flag (bug #376805); rewrite wrapper to support hpacuscripting as well; remove call to ldconfig; don't add the install path to either user or root path. |
7 |
|
8 |
(Portage version: 2.2.0_alpha143/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-block/hpacucli/files/hpacucli-wrapper |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/hpacucli/files/hpacucli-wrapper?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-block/hpacucli/files/hpacucli-wrapper?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: hpacucli-wrapper |
17 |
=================================================================== |
18 |
#!/bin/sh |
19 |
|
20 |
cmd="$(basename "$0")" |
21 |
|
22 |
HPACUCLI_BASEDIR="/opt/hp/hpacucli" |
23 |
HPACUCLI_LOCKDIR="/var/lock/$cmd" |
24 |
HPACUCLI_LOCK="${HPACUCLI_LOCKDIR}/CPQACU_MUTEX" |
25 |
HPACUCLI_BIN="${HPACUCLI_BASEDIR}/$cmd.bin" |
26 |
|
27 |
if pgrep -x "$cmd.bin"; then |
28 |
echo "Another instance of $cmd is running! Stop it first." |
29 |
exit 1 |
30 |
fi |
31 |
|
32 |
if ! [ -f "${HPACUCLI_LOCK}" ]; then |
33 |
mkdir -p -m 700 "${HPACUCLI_LOCKDIR}" |
34 |
touch "${HPACUCLI_LOCK}" |
35 |
fi |
36 |
|
37 |
export LD_LIBRARY_PATH="${HPACUCLI_BASEDIR}" |
38 |
export ACUXE_LOCK_FILES_DIR="${HPACUCLI_LOCKDIR}/" |
39 |
exec setarch `uname -m` --uname-2.6 "${HPACUCLI_BIN}" "${@}" |