contrib/freifunk-common: Check for ipv6 availability in neigh.sh

This commit is contained in:
Manuel Munz 2013-03-28 23:25:02 +00:00
parent eff539fe23
commit 28abb7b85b

View file

@ -1,4 +1,4 @@
#!/bin/sh
wget -q -O - http://localhost:2006/neighbours|sed -e's/LinkQuality/LQ/;s/Hysteresis/Hyst./;s/Willingness/Will./'
wget -q -O - http://[::1]:2006/neighbours|sed -e's/LinkQuality/LQ/;s/Hysteresis/Hyst./;s/Willingness/Will./'
[ -f /proc/net/ipv6_route ] && wget -q -O - http://[::1]:2006/neighbours|sed -e's/LinkQuality/LQ/;s/Hysteresis/Hyst./;s/Willingness/Will./'