Skip to content

Commit

Permalink
mlx4 line fix
Browse files Browse the repository at this point in the history
```bash
[root@localhost inaugurator]# modprobe --show-depends mlx4_en
insmod /lib/modules/3.10.0-1160.45.1.el7.x86_64/kernel/drivers/pps/pps_core.ko.xz
insmod /lib/modules/3.10.0-1160.45.1.el7.x86_64/kernel/drivers/ptp/ptp.ko.xz
insmod /lib/modules/3.10.0-1160.45.1.el7.x86_64/kernel/net/core/devlink.ko.xz
install /sbin/modprobe --ignore-install mlx4_core $CMDLINE_OPTS && (if [ -f /usr/libexec/mlx4-setup.sh -a -f /etc/rdma/mlx4.conf ]; then /usr/libexec/mlx4-setup.sh < /etc/rdma/mlx4.conf; fi; /sbin/modprobe mlx4_en; if /sbin/modinfo mlx4_ib > /dev/null 2>&1; then /sbin/modprobe mlx4_ib; fi)
insmod /lib/modules/3.10.0-1160.45.1.el7.x86_64/kernel/drivers/net/ethernet/mellanox/mlx4/mlx4_en.ko.xz
```
  • Loading branch information
IliaFeldgun committed Oct 19, 2023
1 parent ecf0e0f commit 30385fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh/relative_copy_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FIRMWARE_BLACKLIST="-e ql2600_fw.bin -e ql2700_fw.bin -e ql8300_fw.bin"

set -e
for ko in `modprobe --show-depends $1 --set-version=$KERNEL_UNAME_R | sed 's/insmod //'`; do
for ko in `modprobe --show-depends $1 --set-version=$KERNEL_UNAME_R | sed 's/insmod //' | sed 's/install .*$//'` ; do
sh/relative_copy_glob.sh $ko
done
modinfo --field firmware $1 --set-version=$KERNEL_UNAME_R >& /dev/null
Expand Down

0 comments on commit 30385fb

Please sign in to comment.