#!/bin/bash
# Because of some igb driver(eg: 4.0.17) won't open RSS default,
# so we need to manually open it.
# Attention: Some igb driver won't have parm (eg:IntMode,RSS). So
# this functions is needed to check current kernel's igb dirver if
# support this param or not.

MODPATH=$1

echo 'install ixgbe /sbin/modprobe --ignore-install ixgbe allow_unsupported_sfp=1,1,1,1,1,1,1,1 LRO=0,0,0,0,0,0,0,0 || /sbin/modprobe --ignore-install ixgbe' > /etc/modprobe.d/ixgbe.conf
