modules/freifunk: add some utility scripts from white russian firmware
This commit is contained in:
parent
ccd5ed7cec
commit
6e56fe21ab
2 changed files with 13 additions and 0 deletions
10
modules/freifunk/root/usr/bin/ffdzero
Executable file
10
modules/freifunk/root/usr/bin/ffdzero
Executable 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
|
3
modules/freifunk/root/usr/bin/neigh.sh
Executable file
3
modules/freifunk/root/usr/bin/neigh.sh
Executable 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./'
|
Loading…
Reference in a new issue