[root@localhost /]# cd igb-5.3.5.22/
[root@localhost igb-5.3.5.22]# ls
COPYING igb.7 igb.spec pci.updates README scripts src SUMS
[root@localhost igb-5.3.5.22]# cd src/
[root@localhost src]# make 去编译
注意:make install可指定安装位置的,所以执行下面这条命令,替换原有的ko文件即可。
[root@localhost src]#
[root@localhost src]# /usr/bin/install igb.ko /lib/modules/3.10.0-862.el7.x86_64/kernel/drivers/net/ethernet/intel/igb/igb.ko.xz
[root@localhost src]#
[root@localhost src]#
/usr/bin/install -m 644 /usr/local/src/i40e-2.7.29/src/i40e.ko /lib/modules/3.10.0-229.el7.x86_64/kernel/drivers/net/ethernet/intel/i40e/i40e.ko
cat /etc/rc.d/rc.local | egrep -q "rmmod i40e"
if [ $? -ne 0 ];then
echo "rmmod i40e && modprobe i40e" >> /etc/rc.d/rc.local
fi
cat /etc/rc.d/rc.local | egrep -q "systemctl restart network"
if [ $? -ne 0 ];then
echo "systemctl restart network" >> /etc/rc.d/rc.local
fi
阅读(5587) | 评论(0) | 转发(0) |