contrib/freifunk-common: Check for ipv6 availability in neigh.sh
authorManuel Munz <freifunk@somakoma.de>
Thu, 28 Mar 2013 23:25:02 +0000 (23:25 +0000)
committerManuel Munz <freifunk@somakoma.de>
Thu, 28 Mar 2013 23:25:02 +0000 (23:25 +0000)
contrib/package/freifunk-common/files/usr/bin/neigh.sh

index eee9cd3b44327b2f93dd390afa0826eead983149..ec53a5850f2353be10847ee36591db161b60ae66 100755 (executable)
@@ -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./'