From fbf33450657921d114d4695e9fa6e59887d9f374 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 16 Dec 2021 12:44:42 +0100 Subject: [PATCH] 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 --- ttcn3-tcpdump-start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh index e905d8a75..9b7a8b52b 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