modules/freifunk: Move profiles and common files into seperate packages, this will...
[project/luci.git] / contrib / package / freifunk-common / files / usr / bin / ffdzero
1 #!/bin/sh
2
3 test "$1" = "-h" && echo -e "Usage:\n\t$0 -h\n\t$0 [ { ip | hostname } ]" >&2 && exit 1
4
5 host="${1:-leipzig.freifunk.net}"
6
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