Fixed bug 3132861: If there is no /etc/modprobe.conf, there will be one warning msg output. Now all the opreations related to /etc/modprobe.confwill be added in the check of whether the file is existing.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8478 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-12-20 09:39:20 +00:00
parent 343ce58a7e
commit aa7154a648

View File

@ -131,10 +131,9 @@ if ( $PLTFRM eq "Linux" ) {
{
updatefile("/etc/modprobe.conf", "options ib_ehca nr_ports=1");
updatefile("/etc/modprobe.conf", "options ib_ehca lock_hcalls=0");
runcmd("echo 'options ib_ehca lock_hcalls=0' >> /etc/modprobe.conf");
}
runcmd("echo 'options ib_ehca lock_hcalls=0' >> /etc/modprobe.conf");
my $rdma_cmd = "/sbin/chkconfig --level 2345 $ib_driver on";
runcmd($rdma_cmd);
my $rdma_start_cmd = "/sbin/service $ib_driver restart";