|
@@ -1,14 +1,16 @@
|
|
|
#!/bin/bash
|
|
|
+#
|
|
|
+# Run without argument for IPv4, and with any argument for IPv6..
|
|
|
|
|
|
# Put your UUID here, and keep it secret!
|
|
|
UUID="{{ uuid|default('00000000-0000-0000-0000-000000000000') }}"
|
|
|
PEERFINDER="{{ peerfinder }}"
|
|
|
NB_PINGS=5
|
|
|
-SLEEP=10
|
|
|
+SLEEP=6
|
|
|
|
|
|
[ -z "$1" ] && FAMILY="ipv4" || FAMILY="ipv6"
|
|
|
|
|
|
-[ "$FAMILY" = "ipv4" ] && PING="ping" || PING="ping6"
|
|
|
+[ "$FAMILY" = "ipv4" ] && PING="ping -n -q" || PING="ping6 -n -q"
|
|
|
|
|
|
while :
|
|
|
do
|