Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../05rdma
File: module-setup.sh
#!/bin/bash
[0] Fix | Delete
[1] Fix | Delete
check() {
[2] Fix | Delete
[ -n "$hostonly" -a -c /sys/class/infiniband_verbs/uverbs0 ] && return 0
[3] Fix | Delete
[ -n "$hostonly" ] && return 255
[4] Fix | Delete
return 0
[5] Fix | Delete
}
[6] Fix | Delete
[7] Fix | Delete
depends() {
[8] Fix | Delete
return 0
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
install() {
[12] Fix | Delete
inst /etc/rdma/mlx4.conf
[13] Fix | Delete
inst /etc/rdma/modules/infiniband.conf
[14] Fix | Delete
inst /etc/rdma/modules/iwarp.conf
[15] Fix | Delete
inst /etc/rdma/modules/opa.conf
[16] Fix | Delete
inst /etc/rdma/modules/rdma.conf
[17] Fix | Delete
inst /etc/rdma/modules/roce.conf
[18] Fix | Delete
inst /usr/libexec/mlx4-setup.sh
[19] Fix | Delete
inst /usr/lib/modprobe.d/libmlx4.conf
[20] Fix | Delete
inst_multiple lspci setpci awk sleep
[21] Fix | Delete
inst_multiple -o /etc/modprobe.d/mlx4.conf
[22] Fix | Delete
inst_rules 60-rdma-persistent-naming.rules 70-persistent-ipoib.rules 75-rdma-description.rules 90-rdma-hw-modules.rules 90-rdma-ulp-modules.rules 90-rdma-umad.rules
[23] Fix | Delete
inst_multiple -o \
[24] Fix | Delete
$systemdsystemunitdir/rdma-hw.target \
[25] Fix | Delete
$systemdsystemunitdir/rdma-load-modules@.service
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
installkernel() {
[29] Fix | Delete
hostonly='' instmods =drivers/infiniband =drivers/net/ethernet/mellanox =drivers/net/ethernet/chelsio =drivers/net/ethernet/cisco =drivers/net/ethernet/emulex =drivers/target
[30] Fix | Delete
hostonly='' instmods crc-t10dif crct10dif_common xprtrdma svcrdma
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function