virtualization‎ > ‎

Proxmox - Install megacli

posted Jan 5, 2021, 5:16 AM by Chris Franklin
This script simply installs the repo for hwraid.le-vert.net and then megaclisas-status and megacli packages.

setup_megicli.bash

#!/bin/bash

_WGET=$(which wget)
if [ $? -ne 0 ]; then
 apt update
 apt install wget -y
fi

$_WGET -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | apt-key add -
if [ $? -eq 0 ]; then
 cat <<EOF>/etc/apt/sources.list.d/megacli.list
deb http://hwraid.le-vert.net/debian buster main
EOF
fi
apt update && apt install -y megaclisas-status megacli


Comments