2020-10-07 19:27:06 +00:00
|
|
|
# To use this script, rename or copy the mofed image to either ofed.tgz or ofed.iso
|
|
|
|
# and modify the script below if wanting to use the iso instead of tgz
|
|
|
|
|
|
|
|
# It checks for mellanox devices and opts not to install, so this script could be added
|
|
|
|
# to a general profile without causing mofed to install on non-mellanox systems
|
2020-10-07 18:12:31 +00:00
|
|
|
. /etc/confluent/functions
|
2020-10-07 18:27:11 +00:00
|
|
|
if lspci -d 15b3:: -n |grep 15b3 > /dev/null; then
|
2020-10-07 19:27:06 +00:00
|
|
|
# Uncomment the following three lines and comment out the next
|
|
|
|
# two lines to use the .iso instead of the tgz packaging
|
|
|
|
#fetch_remote ofed/ofed.iso
|
|
|
|
#mkdir MLNX_OFED
|
|
|
|
#mount -o loop ofed.iso MLNX_OFED
|
|
|
|
fetch_remote mofed/mofed.tgz
|
|
|
|
tar xf mofed.tgz
|
2020-10-07 18:12:31 +00:00
|
|
|
# The rest is common between tar and iso
|
|
|
|
cd MLNX_OFED*
|
|
|
|
mount -o loop ofed
|
|
|
|
./mlnxofedinstall --force
|
|
|
|
fi
|