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