2013-05-08 08:18:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Ensure we load the mellanox driver somehow
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-05-08 08:18:00 +00:00
|
|
|
|
|
|
|
home=$(dirname $0)
|
|
|
|
|
|
|
|
install -m 0644 -o root -g root $home/mellanox-rules.udev /etc/udev/rules.d/81-mellanox.rules
|
2016-09-04 07:12:35 +00:00
|
|
|
|
|
|
|
# needed kernel modules; mlx4_en mlx4_ib ib_ipoib mlx5_ib ib_umad ib_uverbs
|
|
|
|
# mlx5_core loaded by mlx5_ib
|
2013-10-04 08:53:03 +00:00
|
|
|
echo "mlx4_en" >>/etc/modules
|
2016-09-04 07:12:35 +00:00
|
|
|
echo "mlx4_ib" >>/etc/modules
|
|
|
|
echo "ib_ipoib" >>/etc/modules
|
|
|
|
echo "mlx5_ib" >>/etc/modules
|
|
|
|
echo "ib_umad" >>/etc/modules
|
|
|
|
echo "ib_uverbs" >>/etc/modules
|