Skip to content

Instantly share code, notes, and snippets.

@retr0h
Created March 28, 2012 03:20
Show Gist options
  • Save retr0h/2223264 to your computer and use it in GitHub Desktop.
Save retr0h/2223264 to your computer and use it in GitHub Desktop.
Install MegaCLI
#!/usr/bin/env sh
### Download and install megaraidcli;
FILE="megacli_8.02.16.orig.tar.gz"
LINK="http://hwraid.le-vert.net/ubuntu/sources/$FILE"
wget $LINK -O /tmp/$FILE
(
cd /tmp
tar -zxvf $FILE && cd megacli-8.02.16/opt
cp -R MegaRAID/ /opt
)
apt-get install libsysfs-dev libsysfs2 sysfsutils
ln -s /lib/libsysfs.so.2.0.1 /usr/lib64/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