Change in osmo-ttcn3-hacks[master]: ttcn3-tcpdump-start.sh: don't hardcode binary paths

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Thu Dec 16 12:17:45 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26591 )

Change subject: ttcn3-tcpdump-start.sh: don't hardcode binary paths
......................................................................

ttcn3-tcpdump-start.sh: don't hardcode binary paths

After replacing debian-stretch-titan with debian-bullseye-titan, tcpdump
does not run anymore, the binary is in /usr/bin and not in /usr/sbin.

Related: OS#4969
Change-Id: I18c88c45c7522c1120ca42cd48d67fe8f155cd39
---
M ttcn3-tcpdump-start.sh
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh
index e905d8a..9b7a8b5 100755
--- a/ttcn3-tcpdump-start.sh
+++ b/ttcn3-tcpdump-start.sh
@@ -1,11 +1,11 @@
 #!/bin/sh
 
 PIDFILE_PCAP=/tmp/pcap.pid
-TCPDUMP=/usr/sbin/tcpdump
-DUMPCAP=/usr/bin/dumpcap
+TCPDUMP=$(command -v tcpdump)
+DUMPCAP=$(command -v dumpcap)
 
 PIDFILE_NETCAT=/tmp/netcat.pid
-NETCAT=/bin/nc
+NETCAT=$(command -v nc)
 GSMTAP_PORT=4729
 
 TESTCASE=$1

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26591
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I18c88c45c7522c1120ca42cd48d67fe8f155cd39
Gerrit-Change-Number: 26591
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211216/f5964514/attachment.htm>


More information about the gerrit-log mailing list