From: Manuel Munz Date: Thu, 28 Mar 2013 23:25:02 +0000 (+0000) Subject: contrib/freifunk-common: Check for ipv6 availability in neigh.sh X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=28abb7b85be42c975ae7eeb5bcc5ca09e4b5906e;p=project%2Fluci.git contrib/freifunk-common: Check for ipv6 availability in neigh.sh --- diff --git a/contrib/package/freifunk-common/files/usr/bin/neigh.sh b/contrib/package/freifunk-common/files/usr/bin/neigh.sh index eee9cd3b44..ec53a5850f 100755 --- a/contrib/package/freifunk-common/files/usr/bin/neigh.sh +++ b/contrib/package/freifunk-common/files/usr/bin/neigh.sh @@ -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./'