Proxmox - Install megacli

Post date: Jan 05, 2021 1:16:33 PM

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