From 091fe027fe5229b2cc861d9ed70f7193b80cc79b Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 3 Dec 2010 03:25:07 +0000 Subject: [PATCH] Fixed one problem for IB support on SLES. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8308 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.1port | 6 ++++-- xCAT-server/share/xcat/ib/scripts/configiba.2ports | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index bb1b5331b..d2fbf7025 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -16,10 +16,12 @@ my $OS_name; my $ib_driver; if ( $ENV{OSVER} && ($ENV{OSVER} =~ /rhe(\D+)(\d+)(\.\d+)?/) ) { if ( $2 > 5 ) { - $ib_driver = "rdma" + $ib_driver = "rdma"; } else { - $ib_driver = "openibd" + $ib_driver = "openibd"; } +} else { + $ib_driver = "openibd"; } my $HOST = `hostname -s`; diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index ff8fd0754..6d77edd7b 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -16,10 +16,12 @@ my $OS_name; my $ib_driver; if ( $ENV{OSVER} && ($ENV{OSVER} =~ /rhe(\D+)(\d+)(\.\d+)?/) ) { if ( $2 > 5 ) { - $ib_driver = "rdma" + $ib_driver = "rdma"; } else { - $ib_driver = "openibd" + $ib_driver = "openibd"; } +} else { + $ib_driver = "openibd"; } my $HOST = `hostname -s`;