[wifi] capture: add OS to the archive name

This commit is contained in:
Matteo Cypriani 2011-08-06 00:18:21 +02:00
parent 65dd809c6b
commit 4a68134713
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ ifconfig $IFACE up && echo "OK." \
|| error "Cannot turn the interface up!"
echo "Capturing $NB_PKT packets..."
DIR=$(mktemp -d "$TMP"/capture_${HOSTNAME}_${IFACE}-XXXXXXXX)
DIR=$(mktemp -d "$TMP"/capture_${OS}_${IFACE}_${HOSTNAME}-XXXXXXXX)
FILE="$DIR/$FILE"
tcpdump -i $IFACE -c $NB_PKT -w "$FILE"
echo "Capture file \"$FILE\" created."