summaryrefslogtreecommitdiff
path: root/hpssacli-2.40-13.0_amd64.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hpssacli-2.40-13.0_amd64.sh')
-rw-r--r--hpssacli-2.40-13.0_amd64.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/hpssacli-2.40-13.0_amd64.sh b/hpssacli-2.40-13.0_amd64.sh
new file mode 100644
index 0000000..9255684
--- /dev/null
+++ b/hpssacli-2.40-13.0_amd64.sh
@@ -0,0 +1,22 @@
1#!/bin/sh
2# Thanks to rmp5s on unraid.net for the solution.
3# Thanks to Daggr for confirming the solution.
4# https://forums.unraid.net/topic/82007-solved-unraid-with-hp-p420i-raid-card-in-hp-proliant-dl380p-g8/
5
6#deb=hpssacli-2.40-13.0_amd64.deb
7deb=${0%.sh}.deb
8url=https://downloads.linux.hpe.com/SDR/repo/mcp/pool/non-free/$deb
9set -ex
10
11if ! dpkg-query -W hpssacli
12then
13 [ -e "$deb" ] || wget "$url" || curl -O "$url"
14 dpkg -i "$deb"
15fi
16
17PATH=/opt/hp/hpssacli/bld:$PATH
18
19hpssacli controller slot=0 show |
20 grep 'HBA Mode Enabled: True' ||
21 hpssacli controller slot=0 modify hbamode=on
22hpssacli rescan