wlan-ap-Telecominfraproject/feeds/ucentral/ucentral-schema/files/usr/bin/tcpdump_timeout
John Crispin 530332fb51 fix packet captures when packet count is set
Fixes: WIFI-10290
Signed-off-by: John Crispin <john@phrozen.org>
2022-08-07 14:55:32 +02:00

14 lines
104 B
Bash
Executable File

#!/bin/sh
n=$1
shift
if [ $n -eq 0 ]; then
tcpdump $@
else
tcpdump $@ &
x=$!
sleep $n
kill $x
fi