ffdzero 413 B

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