Skip to content

Instantly share code, notes, and snippets.

@maoy
Forked from retr0h/gist:2223264
Created November 7, 2012 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maoy/4032989 to your computer and use it in GitHub Desktop.
Save maoy/4032989 to your computer and use it in GitHub Desktop.
Install MegaCLI
#!/usr/bin/env sh
### Download and install megaraidcli for Ubuntu 12.04;
FILE="megacli_8.04.07.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