summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-02-08 10:10:43 +0000
committermakefu <root@pigstarter.de>2013-02-08 10:10:43 +0000
commit59ccc0fd871c4bbd12066f2f6aacf835a839885d (patch)
tree09bd178d2b9cb14225c402c0915cc560246c4e36 /retiolum/scripts/adv_graphgen
parent453593943e41edc1b55372951af1e3b2768e59c0 (diff)
add nodes-to-json: parses retiolum/hosts folder into json
Diffstat (limited to 'retiolum/scripts/adv_graphgen')
-rwxr-xr-xretiolum/scripts/adv_graphgen/find_super21
1 files changed, 0 insertions, 21 deletions
diff --git a/retiolum/scripts/adv_graphgen/find_super b/retiolum/scripts/adv_graphgen/find_super
deleted file mode 100755
index 2c316d0e..00000000
--- a/retiolum/scripts/adv_graphgen/find_super
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /bin/dash
-set -eu
-cd /etc/tinc/retiolum/hosts
-for name in `
- grep '^[[:space:]]*Address[[:space:]]*=' * |
- cut -d: -f1 | sort | uniq
-`; do
- if eval "`sed -n '
- s/[[:space:]]\+//g
- s/^\(Address\|Port\)=\(.*\)/\1="\${\1+\$\1\n}\2"/p
- ' $name`"; then
- port=${Port-655}
- for host in $Address; do
- if nc -zw 2 $host $port 2>/dev/null; then
- echo "$name [('$host', $port)]"
- fi &
- done
- wait
- fi &
-done
-wait