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
This commit is contained in:
parent
7138913d66
commit
fbf3345065
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PIDFILE_PCAP=/tmp/pcap.pid
|
PIDFILE_PCAP=/tmp/pcap.pid
|
||||||
TCPDUMP=/usr/sbin/tcpdump
|
TCPDUMP=$(command -v tcpdump)
|
||||||
DUMPCAP=/usr/bin/dumpcap
|
DUMPCAP=$(command -v dumpcap)
|
||||||
|
|
||||||
PIDFILE_NETCAT=/tmp/netcat.pid
|
PIDFILE_NETCAT=/tmp/netcat.pid
|
||||||
NETCAT=/bin/nc
|
NETCAT=$(command -v nc)
|
||||||
GSMTAP_PORT=4729
|
GSMTAP_PORT=4729
|
||||||
|
|
||||||
TESTCASE=$1
|
TESTCASE=$1
|
||||||
|
|
Loading…
Reference in New Issue