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

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 11:48:00 UTC 2021


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


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

ttcn3-tcpdump-start.sh: don't hardcode tcpdump path

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, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/91/26591/1

diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh
index e905d8a..853ac1c 100755
--- a/ttcn3-tcpdump-start.sh
+++ b/ttcn3-tcpdump-start.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 PIDFILE_PCAP=/tmp/pcap.pid
-TCPDUMP=/usr/sbin/tcpdump
+TCPDUMP=$(command -v tcpdump)
 DUMPCAP=/usr/bin/dumpcap
 
 PIDFILE_NETCAT=/tmp/netcat.pid

-- 
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: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211216/fea9320d/attachment.htm>


More information about the gerrit-log mailing list