#!/system/bin/sh if [ -z "$1" ] ; then N=10000 else N=$1 fi dir=/Removable/MicroSD/netcap date=`date +%Y%m%d_%H%M%S` file=$date.cap echo Create $dir/$file echo tcpcap port 5000 $N packets tcpdump2 -w $dir/$file -c $N port 5000