From patchwork Mon Feb 14 18:36:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 556421 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1EIaNHg021679 for ; Mon, 14 Feb 2011 18:36:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408Ab1BNSgP (ORCPT ); Mon, 14 Feb 2011 13:36:15 -0500 Received: from quartz.orcorp.ca ([139.142.54.143]:48793 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050Ab1BNSgO (ORCPT ); Mon, 14 Feb 2011 13:36:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=obsidianresearch.com; s=rsa1; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=Uw0vSVUfhgQmVB54WMjqVy2Bkr1WV24iyJk/R0Gb3p0=; b=R6fKwymDhGcOL43V44ZiWI70ffWMoTHu225B/Dv2srTP8sMiMM+ku9vJweQ1ZvbYpmiFRvY4CrAAk7GJoVfAuxcVQr7cDW9GQO8f48cf99LKDT93IWud2w0u+lqujkMo1yNWqhZZ7C1AiCylWmfJqSUTKGKSNNO29Oh8uOjzWcA=; Received: from [10.0.0.11] (helo=jggl.edm.orcorp.ca) by quartz.orcorp.ca with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Pp3HR-0007iU-H3; Mon, 14 Feb 2011 11:36:13 -0700 Received: from jgg by jggl.edm.orcorp.ca with local (Exim 4.72) (envelope-from ) id 1Pp3HR-0005Vn-7y; Mon, 14 Feb 2011 11:36:13 -0700 Date: Mon, 14 Feb 2011 11:36:13 -0700 From: Jason Gunthorpe To: Ira Weiny , linux-rdma Subject: [PATCH/infiniband-diags] The shell scripts use bashism, so use bash directly. Message-ID: <20110214183613.GA21158@obsidianresearch.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.11 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Feb 2011 18:36:23 +0000 (UTC) diff --git a/scripts/dump_lfts.sh b/scripts/dump_lfts.sh index a07c211..0bf334d 100755 --- a/scripts/dump_lfts.sh +++ b/scripts/dump_lfts.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # This simple script will collect outputs of ibroute for all switches # on the subnet and drop it on stdout. It can be used for LFTs dump diff --git a/scripts/dump_mfts.sh b/scripts/dump_mfts.sh index cdadba2..d6c2359 100755 --- a/scripts/dump_mfts.sh +++ b/scripts/dump_mfts.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # This simple script will collect outputs of ibroute for all switches # on the subnet and drop it on stdout. It can be used for MFTs dump diff --git a/scripts/ibcheckerrors.in b/scripts/ibcheckerrors.in index a45bd63..fef503c 100644 --- a/scripts/ibcheckerrors.in +++ b/scripts/ibcheckerrors.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibcheckerrs.in b/scripts/ibcheckerrs.in index 6052ff8..4db0929 100644 --- a/scripts/ibcheckerrs.in +++ b/scripts/ibcheckerrs.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibchecknet.in b/scripts/ibchecknet.in index 6447835..a6d5b1a 100644 --- a/scripts/ibchecknet.in +++ b/scripts/ibchecknet.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibchecknode.in b/scripts/ibchecknode.in index 5eea7b5..d105430 100644 --- a/scripts/ibchecknode.in +++ b/scripts/ibchecknode.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibcheckport.in b/scripts/ibcheckport.in index fa5e81e..a786e9f 100644 --- a/scripts/ibcheckport.in +++ b/scripts/ibcheckport.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibcheckportstate.in b/scripts/ibcheckportstate.in index dc4fb14..549d427 100644 --- a/scripts/ibcheckportstate.in +++ b/scripts/ibcheckportstate.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibcheckportwidth.in b/scripts/ibcheckportwidth.in index 60a0892..3b387be 100644 --- a/scripts/ibcheckportwidth.in +++ b/scripts/ibcheckportwidth.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibcheckstate.in b/scripts/ibcheckstate.in index 63551d5..78359d8 100644 --- a/scripts/ibcheckstate.in +++ b/scripts/ibcheckstate.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibcheckwidth.in b/scripts/ibcheckwidth.in index cbb154c..49e8d1d 100644 --- a/scripts/ibcheckwidth.in +++ b/scripts/ibcheckwidth.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibclearcounters.in b/scripts/ibclearcounters.in index 86a5528..429018a 100644 --- a/scripts/ibclearcounters.in +++ b/scripts/ibclearcounters.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibclearerrors.in b/scripts/ibclearerrors.in index 3dfb96b..f7f1ccc 100644 --- a/scripts/ibclearerrors.in +++ b/scripts/ibclearerrors.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibdatacounters.in b/scripts/ibdatacounters.in index 5967406..1abaaf2 100644 --- a/scripts/ibdatacounters.in +++ b/scripts/ibdatacounters.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibdatacounts.in b/scripts/ibdatacounts.in index 3dbc56a..a9e94c0 100644 --- a/scripts/ibdatacounts.in +++ b/scripts/ibdatacounts.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibhosts.in b/scripts/ibhosts.in index baba105..08b2f83 100644 --- a/scripts/ibhosts.in +++ b/scripts/ibhosts.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibnodes.in b/scripts/ibnodes.in index 5871da8..0726efc 100644 --- a/scripts/ibnodes.in +++ b/scripts/ibnodes.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibrouters.in b/scripts/ibrouters.in index 6404aca..97769db 100644 --- a/scripts/ibrouters.in +++ b/scripts/ibrouters.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/ibstatus b/scripts/ibstatus index f7fbbc2..6f01be0 100755 --- a/scripts/ibstatus +++ b/scripts/ibstatus @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Usage ibstatus [devname[:port]] diff --git a/scripts/ibswitches.in b/scripts/ibswitches.in index 163620a..fff4468 100644 --- a/scripts/ibswitches.in +++ b/scripts/ibswitches.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash IBPATH=${IBPATH:-@IBSCRIPTPATH@} diff --git a/scripts/set_nodedesc.sh b/scripts/set_nodedesc.sh index 855ced7..4ec0c43 100755 --- a/scripts/set_nodedesc.sh +++ b/scripts/set_nodedesc.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [ -f /etc/sysconfig/network ]; then . /etc/sysconfig/network