#!/bin/bash
# $Id: testreceived,v 1.2 2003/03/20 11:41:53 andrew Exp $
#
# testreceived - look for received packes on an interface
#
# Contributed by: Mike Carr <mcarr@macrolink.bc.ca>
# 
# May supply IFACE as first (and only) argument (or previously set INTERFACE)

# Turn on execution tracing, for debugging...
[ "$DEBUGWHEREAMI" = "1" ] && set -o xtrace

IFACE=${1:-$INTERFACE}

/sbin/ifconfig -s $IFACE |tail -1 |awk '$4==0 { exit 1; }'
exit $?

