3 test "$1" = "-h" && echo -e "Usage:\n\t$0 -h\n\t$0 [ { ip | hostname } ]" >&2 && exit 1
5 host="${1:-leipzig.freifunk.net}"
7 wget -O /dev/null http://$host/cgi-bin-dev-zero.bin
8 test "$?" = "1" && wget -O /dev/null http://$host/cgi-bin/dev-zero.bin
9 test "$?" = "1" && wget -O /dev/null http://$host/cgi-bin/luci/freifunk/status/zeroes
10 test "$?" = "1" && echo "$host: no zero download found..." && exit 1