aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2017-02-20 19:25:30 +0100
committerJan Gelety <jgelety@cisco.com>2017-02-21 16:18:24 +0100
commit8ef4983395b46a834e3ffe712197ec2e2f2b50d1 (patch)
treeba2891762e92e09271d92c02509aa5057f66f1c9 /resources/libraries/bash
parentd92228369549613e2547c35f11e4bc2ab009d5ca (diff)
Fix of centos bootstrap and dut_setup.sh
Change-Id: I9fc3a74bf6356bdccee16c977df86567e91b4acf Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/dut_setup.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/resources/libraries/bash/dut_setup.sh b/resources/libraries/bash/dut_setup.sh
index fa88978d5a..952b82bdc7 100644
--- a/resources/libraries/bash/dut_setup.sh
+++ b/resources/libraries/bash/dut_setup.sh
@@ -23,7 +23,11 @@ function cmd {
echo
echo "[Command_desc] Starting ${0}"
-cmd 'dpkg -l vpp\*'
+if [ -f "/etc/redhat-release" ]; then
+ cmd 'rpm -qai vpp*'
+else
+ cmd 'dpkg -l vpp\*'
+fi
cmd 'ps aux | grep vpp'
@@ -44,10 +48,14 @@ cmd 'sudo dmidecode | grep UUID'
cmd 'lspci -Dnn'
-cmd 'tail -n 100 /var/log/syslog'
+if [ -f "/etc/redhat-release" ]; then
+ cmd 'tail -n 100 /var/log/messages'
+else
+ cmd 'tail -n 100 /var/log/syslog'
+fi
echo "[Command_desc] Adding dpdk-input trace"
cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 100"'
echo "[Command_desc] Adding vhost-user-input trace"
-cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 100"'
+cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 100"' \ No newline at end of file