From patchwork Mon Dec 3 20:28:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Stanley X-Patchwork-Id: 1835041 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E222640E3F for ; Mon, 3 Dec 2012 20:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880Ab2LCUfl (ORCPT ); Mon, 3 Dec 2012 15:35:41 -0500 Received: from mail-gh0-f174.google.com ([209.85.160.174]:65203 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751098Ab2LCUfk (ORCPT ); Mon, 3 Dec 2012 15:35:40 -0500 Received: by mail-gh0-f174.google.com with SMTP id g15so469604ghb.19 for ; Mon, 03 Dec 2012 12:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=A1Ghl2SGdCT5185Fdwfa7qdZPHCB+PUI79cs2EH9vPw=; b=QQaErHVBQBNS52YWiSA9CNDYhGYx18JXtQadsxQ+BydP6JjVV3gXjSweP+taTpSQ5G co3yh1KydysPlzfhGHfEd6/SOfm99Q/efq0790+TBlfwzA1TjQDh9IA8wNYjOTcZV54B go2kFg4Q3PfWn8BskC1cBTfVRpYY4L7WMh6Q/H1gOoOCTRZi+vhQUzjzSjzEwakmGU0b U5yjSco4qMp+vCFXiwmKh0qo2GfHqyS/BEneywpzgc5XUmhrh7c+Gu7LDCt+AMy+XTga 5AvJE62be4A49gqI0NHbFidjn8SVCatFjkqA/cPycP9gmuSVa5S5oEQloQN6BhWLeJwx IQWQ== Received: by 10.101.50.11 with SMTP id c11mr3553650ank.5.1354566529169; Mon, 03 Dec 2012 12:28:49 -0800 (PST) Received: from localhost.localdomain (i.am.jds2001.org. [96.126.108.98]) by mx.google.com with ESMTPS id y9sm12513321anh.20.2012.12.03.12.28.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2012 12:28:47 -0800 (PST) From: Jon Stanley To: linux-rdma@vger.kernel.org Cc: Jon Stanley , Doug Ledford , Ira Weiny Subject: [PATCH] infiniband-diags: Remove Red Hat-ism. Date: Mon, 3 Dec 2012 15:28:18 -0500 Message-Id: <1354566498-8364-1-git-send-email-jonstanley@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Future release of Fedora are going to remove /etc/sysconfig/network which we source to get $HOSTNAME. Bash (and sh) set $HOSTNAME in the shell by default, so we should be safe to use that here. This adds the benefit of working across multiple distributions if that is required in the future. Related: rhbz881917 Signed-off-by: Jon Stanley Cc: Doug Ledford Cc: Ira Weiny --- scripts/set_nodedesc.sh | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/scripts/set_nodedesc.sh b/scripts/set_nodedesc.sh index 1e42ac8..3d2e406 100755 --- a/scripts/set_nodedesc.sh +++ b/scripts/set_nodedesc.sh @@ -1,8 +1,5 @@ #!/bin/sh -if [ -f /etc/sysconfig/network ]; then -. /etc/sysconfig/network -fi ib_sysfs="/sys/class/infiniband" newname="$HOSTNAME"