summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndre Richter <andre.o.richter@gmail.com>2015-03-12 18:18:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-03-17 22:58:21 +0100
commit83246086ab6efc93ecdebeef1ec018970e2aa9fc (patch)
treedf0c555d2b96b6a37370981b1f07413b11699b14 /tools
parentcec1b9f3af45f1abf04dbaa69f08a68bb8486b40 (diff)
downloaddpdk-83246086ab6efc93ecdebeef1ec018970e2aa9fc.zip
dpdk-83246086ab6efc93ecdebeef1ec018970e2aa9fc.tar.gz
dpdk-83246086ab6efc93ecdebeef1ec018970e2aa9fc.tar.xz
tools: remove absolute path of chmod for vfio setup
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. Signed-off-by: Andre Richter <andre.o.richter@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/setup.sh6
1 files 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