From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 0012E959 for ; Thu, 12 Mar 2015 18:18:28 +0100 (CET) Received: by wghl2 with SMTP id l2so17882934wgh.8 for ; Thu, 12 Mar 2015 10:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=ZnNebxHOgYmFflP0wPUSGj8ZX1mHulRgWoRPLJlFOPE=; b=PtxQLW5h9rf91f6JLSqN9pTJ5tK7hS3uUQFXLtWR3rvzIQ4/pKqx1sjLL23W1+NOUE 2Rd9YNuM0LRwTjpN1qKiPTbzLUy3Lrqfh8zsLYqrLQrdS+cG/Wnn/Wa9k91xb0IbMCUJ vN7+pLM3tqcD9EK29GdRrPDHrWaVzhtiSF0m44096iVsfN/7El9BG2UF1o/R4tj1S+VC aykxgZ96CyT+01mnXXdB7VE/pnsPjT0yG8BpPp3ewsUrSU2UtQDDrgNuKF1hC6ZQlbVY Do3h++CLEzhapg8jaub61Pft7KZA0QvA8j/wP34Px+cMHzlN97mjdEp+xmk3yKcJpxdK vBJw== X-Received: by 10.180.97.226 with SMTP id ed2mr130492527wib.4.1426180708892; Thu, 12 Mar 2015 10:18:28 -0700 (PDT) Received: from aramis-xeon1.lis.ei.tum.de (aramis-xeon1.lis.ei.tum.de. [129.187.155.172]) by mx.google.com with ESMTPSA id fo8sm11615309wib.14.2015.03.12.10.18.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Mar 2015 10:18:27 -0700 (PDT) From: Andre Richter To: dev@dpdk.org Date: Thu, 12 Mar 2015 18:18:00 +0100 Message-Id: <1426180680-5350-1-git-send-email-andre.o.richter@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] tools: remove chmod absolute path in setup.sh X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 17:18:29 -0000 setup.sh uses /usr/bin/chmod, but depending on distribution, it is not always there. For example, Ubuntu has /bin/chmod. Fix this by removing the absolute path, like it is done e.g. with grep. --- tools/setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/setup.sh b/tools/setup.sh index 245900f..ac438c2 100755 --- a/tools/setup.sh +++ b/tools/setup.sh @@ -220,7 +220,7 @@ load_vfio_module() # make sure regular users can read /dev/vfio echo "chmod /dev/vfio" - sudo /usr/bin/chmod a+x /dev/vfio + sudo chmod a+x /dev/vfio if [ $? -ne 0 ] ; then echo "FAIL" quit @@ -278,7 +278,7 @@ set_vfio_permissions() { # make sure regular users can read /dev/vfio echo "chmod /dev/vfio" - sudo /usr/bin/chmod a+x /dev/vfio + sudo chmod a+x /dev/vfio if [ $? -ne 0 ] ; then echo "FAIL" quit @@ -287,7 +287,7 @@ set_vfio_permissions() # make sure regular user can access everything inside /dev/vfio echo "chmod /dev/vfio/*" - sudo /usr/bin/chmod 0666 /dev/vfio/* + sudo chmod 0666 /dev/vfio/* if [ $? -ne 0 ] ; then echo "FAIL" quit -- 1.9.1