summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorepoch <epoch@enzo.thebackupbox.net>2021-01-24 20:24:21 -0600
committerepoch <epoch@enzo.thebackupbox.net>2021-01-24 20:24:21 -0600
commita1f549f07c378aa57852e288f0405ac8af18d907 (patch)
tree4ec93118940dd716866d06b44de97ce5667866ef /share
parent4feb44b2849b9c2779118f58991a295efb0727b9 (diff)
downloadhackvr-a1f549f07c378aa57852e288f0405ac8af18d907.tar.gz
hackvr-a1f549f07c378aa57852e288f0405ac8af18d907.zip
added a state var, and a title var. svg will now use those in its output "svg" (html)
Diffstat (limited to 'share')
-rwxr-xr-xshare/hackvr/examples/anonet_map/map8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/hackvr/examples/anonet_map/map b/share/hackvr/examples/anonet_map/map
index 976bb79..51a9e59 100755
--- a/share/hackvr/examples/anonet_map/map
+++ b/share/hackvr/examples/anonet_map/map
@@ -1,4 +1,6 @@
#!/bin/bash
+echo $USER set title anonet_AS_map
+
paths="$(ncat --recv-only 21.41.41.1 64777 | sort | uniq | tee ${PREFIX}/var/cache/hackvr/anonet_data.new)"
MAP=${PREFIX}/var/cache/hackvr/anonet_map.hackvr
@@ -54,9 +56,9 @@ line_between_nodes() {
}
for node in $nodes;do
- printf "<whois://whois.ano/AS%s> addshape 5 4 -1 8 0 -1 10 0 1 10 0 1 8 0\n" "$node"
- printf "<whois://whois.ano/AS* rotate 0 0 +%d\n" "$[360 / ${nodes_count} ]"
- printf "<whois://whois.ano/AS* flatten\n"
+ printf "<//whois.ano/AS%s> addshape 5 4 -1 8 0 -1 10 0 1 10 0 1 8 0\n" "$node"
+ printf "<//whois.ano/AS* rotate 0 0 +%d\n" "$[360 / ${nodes_count} ]"
+ printf "<//whois.ano/AS* flatten\n"
makelabel.sh AS$node $( echo | awk "{print $(xcoord_by_ASN $node) * 13}" ) $( echo | awk "{print $(ycoord_by_ASN $node) * 13}" ) -19 <<< $node
printf "AS%s scale .1 .1 .1\n" "$node"
done | tee -a $MAP