From 28abb7b85be42c975ae7eeb5bcc5ca09e4b5906e Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Thu, 28 Mar 2013 23:25:02 +0000 Subject: [PATCH] contrib/freifunk-common: Check for ipv6 availability in neigh.sh --- contrib/package/freifunk-common/files/usr/bin/neigh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/package/freifunk-common/files/usr/bin/neigh.sh b/contrib/package/freifunk-common/files/usr/bin/neigh.sh index eee9cd3b4..ec53a5850 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./' -- 2.25.1