modules/freifunk: add some utility scripts from white russian firmware

This commit is contained in:
Jo-Philipp Wich 2009-04-12 20:03:27 +00:00
parent ccd5ed7cec
commit 6e56fe21ab
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,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

View file

@ -0,0 +1,3 @@
#!/bin/sh
wget -q -O - http://localhost:2006/neighbours|sed -e's/LinkQuality/LQ/;s/Hysteresis/Hyst./;s/Willingness/Will./'