Mellanox renamed their driver in later kernels. If new name detected, substitute it

This commit is contained in:
Jarrod Johnson 2014-09-02 10:37:23 -04:00
parent 8a6b60a769
commit 573fc1790f

View File

@ -543,6 +543,11 @@ if (@new_order) {
@ndrivers = (@new_order, @ndrivers);
}
if (-f "$rootimg_dir/lib/modules/$kernelver/kernel/drivers/net/ethernet/mellanox/mlx4/mlx4_en.ko") {
for (@ndrivers) {
s/mlx_en/mlx4_en/;
}
}
open($moddeps,"<","$rootimg_dir/lib/modules/$kernelver/modules.dep");
my @moddeps = <$moddeps>;
my @checkdeps = @ndrivers;