diff options
Diffstat (limited to 'hpssacli-2.40-13.0_amd64.sh')
-rw-r--r-- | hpssacli-2.40-13.0_amd64.sh | 22 |
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 | ||
7 | deb=${0%.sh}.deb | ||
8 | url=https://downloads.linux.hpe.com/SDR/repo/mcp/pool/non-free/$deb | ||
9 | set -ex | ||
10 | |||
11 | if ! dpkg-query -W hpssacli | ||
12 | then | ||
13 | [ -e "$deb" ] || wget "$url" || curl -O "$url" | ||
14 | dpkg -i "$deb" | ||
15 | fi | ||
16 | |||
17 | PATH=/opt/hp/hpssacli/bld:$PATH | ||
18 | |||
19 | hpssacli controller slot=0 show | | ||
20 | grep 'HBA Mode Enabled: True' || | ||
21 | hpssacli controller slot=0 modify hbamode=on | ||
22 | hpssacli rescan | ||