diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-03-28 23:25:02 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-03-28 23:25:02 +0000 |
commit | 28abb7b85be42c975ae7eeb5bcc5ca09e4b5906e (patch) | |
tree | a8fe5bcd505058fa4b77f730483451c7e195ee26 | |
parent | eff539fe23221b00661235d93192938a1b85cb18 (diff) |
contrib/freifunk-common: Check for ipv6 availability in neigh.sh
-rwxr-xr-x | contrib/package/freifunk-common/files/usr/bin/neigh.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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./' |