#! /bin/sh
# aoe-flush

zero="`basename $0`"
f="/dev/etherd/flush"
spec=""

if ! test -w "$f"; then
	echo 1>&2 "$zero: $f does not exist or is not writeable."
	exit 1
fi

if test "$1" = "-a"; then
	spec=all
fi

echo $spec > "$f" || {
	echo 1>&2 "$zero: flush failed"
	exit 1
}

