From: Andre Richter <andre.o.richter@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] tools: remove chmod absolute path in setup.sh
Date: Thu, 12 Mar 2015 18:18:00 +0100 [thread overview]
Message-ID: <1426180680-5350-1-git-send-email-andre.o.richter@gmail.com> (raw)
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
next reply other threads:[~2015-03-12 17:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 17:18 Andre Richter [this message]
2015-03-17 21:25 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426180680-5350-1-git-send-email-andre.o.richter@gmail.com \
--to=andre.o.richter@gmail.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).