Skip to content

Instantly share code, notes, and snippets.

@ijunaid8989
Created August 25, 2016 12:50
Show Gist options
  • Save ijunaid8989/cd0f0695a8232b5641cac32d82a7465b to your computer and use it in GitHub Desktop.
Save ijunaid8989/cd0f0695a8232b5641cac32d82a7465b to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
### Download and install megaraidcli for Ubuntu;
FILE="megacli_8.07.14.orig.tar.gz"
LINK="http://hwraid.le-vert.net/ubuntu/sources/$FILE"
wget $LINK -O /tmp/$FILE
(
cd /tmp
tar -zxvf $FILE && cd megacli-*/opt
cp -R MegaRAID/ /opt
)
apt-get install libsysfs-dev libsysfs2 sysfsutils
ln -s /lib/libsysfs.so.2.0.1 /usr/lib/libsysfs.so.2.0.2
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment