From aa7154a64802ca190e6924c72ea399c14580e69b Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Mon, 20 Dec 2010 09:39:20 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/ib/scripts/configiba.2ports | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index 6d77edd7b..e6a4d9b9d 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -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";