my $kernel_configure_options = '';
my $user_configure_options = '';
+my $enable_iwpmd = 0;
my @misc_packages = ("ofed-docs", "ofed-scripts");
print RED "See $ofedlogs/$name.rpminstall.log", RESET "\n";
exit 1;
}
+
+ if ($name eq "compat-rdma") {
+ for my $module (@selected_kernel_modules) {
+ if ($module eq "i40iw" or $module eq "cxgb4" or $module eq "nes") {
+ $enable_iwpmd = 1;
+ }
+ }
+ }
}
sub install_rpm_32
}
}
+ if ($enable_iwpmd eq 1) {
+ system("command -v \"systemctl\" > /dev/nul");
+ my $res = $? >> 8;
+ if ($res eq 0) {
+ system("systemctl enable iwpmd");
+ }
+ }
+
print GREEN "\nInstallation finished successfully.", RESET;
if ($interactive) {
print GREEN "\nPress any key to continue...", RESET;