diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index a8af3b5df..fab42f781 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -12,6 +12,18 @@ PLTFRM=`uname` if [[ $OSVER == rhels5* || "$OSVER" == rhels6* ]] then ib_driver="rdma" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + $ib_driver="openibd" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + echo "Not found the driver dameon: rdma or openibd" + exit + fi + fi + else ib_driver="openibd" fi diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index 52872f85f..552be6e33 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # IBM(c) 2008 EPL license http://www.eclipse.org/legal/epl-v10.html # Sample xCAT post script for configuring secondary adatper based on eth0 @@ -11,6 +11,18 @@ PLTFRM=`uname` if [[ $OSVER == rhels5* || "$OSVER" == rhels6* ]] then ib_driver="rdma" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + $ib_driver="openibd" + /sbin/service $ib_driver status + if [ $? -eq 1 ] + then + echo "Not found the driver dameon: rdma or openibd" + exit + fi + fi + else ib_driver="openibd" fi