1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
From: Roland Fehrenbacher <rf@q-leap.de>
Date: Sat, 10 Feb 2018 14:54:47 +0100
Subject: Adjust absolute paths for some executables
---
IbaTools/nodeverify/nodeverify.sh | 8 ++++----
IbaTools/opahfirev/opahfirev.sh | 2 +-
OpenIb_Host/LINUX/opacapture.sh | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/IbaTools/nodeverify/nodeverify.sh b/IbaTools/nodeverify/nodeverify.sh
index ddc988f..19ba86f 100755
--- a/IbaTools/nodeverify/nodeverify.sh
+++ b/IbaTools/nodeverify/nodeverify.sh
@@ -247,7 +247,7 @@ test_pcicfg()
failure=0
cd "${outdir}" || fail "Can't cd ${outdir}"
- lspci="${lspci:-/sbin/lspci}"
+ lspci="${lspci:-/usr/bin/lspci}"
[ ! -x "${lspci}" ] && fail "Can't find lspci"
# get OmniPath Intel stand-alone WFR HFI
@@ -315,7 +315,7 @@ test_pcispeed()
failure=0
cd "${outdir}" || fail "Can't cd ${outdir}"
- lspci="${lspci:-/sbin/lspci}"
+ lspci="${lspci:-/usr/bin/lspci}"
[ ! -x "${lspci}" ] && fail "Can't find lspci"
# get OmniPath Intel stand-alone WFR HFI
@@ -509,8 +509,8 @@ test_hfi_pkt()
date
cd "${outdir}" || fail "Can't cd ${outdir}"
- lspci="${lspci:-/sbin/lspci}"
- setpci="${setpci:-/sbin/setpci}"
+ lspci="${lspci:-/usr/bin/lspci}"
+ setpci="${setpci:-/usr/bin/setpci}"
[ ! -x "${lspci}" ] && fail "Can't find lspci"
[ ! -x "${setpci}" ] && fail "Can't find setpci"
diff --git a/IbaTools/opahfirev/opahfirev.sh b/IbaTools/opahfirev/opahfirev.sh
index 5076d9c..34c9d57 100755
--- a/IbaTools/opahfirev/opahfirev.sh
+++ b/IbaTools/opahfirev/opahfirev.sh
@@ -70,7 +70,7 @@ fi
BASEDIR=/sys/bus/pci/devices
-hfis=`lspci -nn -D -d '8086:*' | egrep -e "24f[01]|Omni-Path" | grep -vi bridge | cut -d\ -f1`
+hfis=`/usr/bin/lspci -nn -D -d '8086:*' | egrep -e "24f[01]|Omni-Path" | grep -vi bridge | cut -d\ -f1`
if [ -z "$hfis" ]
then
diff --git a/OpenIb_Host/LINUX/opacapture.sh b/OpenIb_Host/LINUX/opacapture.sh
index 928b683..47f88b2 100755
--- a/OpenIb_Host/LINUX/opacapture.sh
+++ b/OpenIb_Host/LINUX/opacapture.sh
@@ -150,7 +150,7 @@ fi
tar -zcf /$dir/opa-fm-bins.tgz /usr/lib/opa-fm/runtime/ > /dev/null 2>&1
# Finding the PCI devices
-for fw in `lspci -n | grep "8086:24f0"`
+for fw in `/usr/bin/lspci -n | grep "8086:24f0"`
do
# Just get the PCI info for now...
echo "$fw" >> /$dir/fw_info
|