diff --git a/clientside/tmcc/centos6/GNUmakefile.in b/clientside/tmcc/centos6/GNUmakefile.in index e3fb93e527655ae8428a76433f10ec8afb6136e4..0bc114b45b2455c779b409b173f9f58893371c46 100644 --- a/clientside/tmcc/centos6/GNUmakefile.in +++ b/clientside/tmcc/centos6/GNUmakefile.in @@ -91,12 +91,14 @@ sysetc-install: ifcfgs dir-install $(INSTALL) -m 644 $(SRCDIR)/ifcfg-eth99 $(SYSETCDIR)/sysconfig/network-scripts $(INSTALL) -m 644 ifcfg-eth[0-9]* $(SYSETCDIR)/sysconfig/network-scripts $(INSTALL) -m 644 $(SRCDIR)/logrotate-syslog $(SYSETCDIR)/logrotate.d/syslog + $(INSTALL) -m 755 $(SRCDIR)/mellanox.modules $(SYSETCDIR)/sysconfig/modules -ln -sf $(SYSETCDIR)/dhclient-enter-hooks $(SYSETCDIR)/dhcp/dhclient-enter-hooks -ln -sf $(SYSETCDIR)/dhclient-exit-hooks $(SYSETCDIR)/dhcp/dhclient-exit-hooks sysetc-remove: rm -rf $(SYSETCDIR)/modules.conf $(SYSETCDIR)/ntp.conf $(SYSETCDIR)/cron.pend + # stuff we don't really need to do all the time and may not even be correct # or sufficient for all FCs sysetc-onceonly-install: diff --git a/clientside/tmcc/centos6/mellanox.modules b/clientside/tmcc/centos6/mellanox.modules new file mode 100755 index 0000000000000000000000000000000000000000..4ea8b165114976a964c84c66f6e566541a4b9912 --- /dev/null +++ b/clientside/tmcc/centos6/mellanox.modules @@ -0,0 +1,10 @@ +#!/bin/sh + +MODLIST="mlx4_en mlx4_ib ib_umad ib_uverbs ib_ipoib ib_srp" + +lsmod | grep -q mlx4_core +if [ $? -eq 0 ]; then + for mod in $MODLIST; do + modprobe $mod + done +fi