blob: 871e9eb1b12c4d33458af8216c70fc6715356fd7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
# This file is in the public domain.
# Helper script for dhtu_testbed_deploy.sh.
# Do not invoke directly.
n=$1
CFG="/tmp/deployment/${n}.conf"
HELLO=`gnunet-dht-hello -c $CFG`
# Create dense topology:
#for OFF in `seq 1 $MAX`
#do
# TCFG="/tmp/deployment/${OFF}.conf"
# gnunet-dht-hello -c $TCFG $HELLO
#done
#exit 0
# Create sparse topology:
R=1
while test `expr $R \* $R \* $R` -lt $MAX
do
END=`expr $R \* $R`
for M in `seq $R $R $END`
do
OFF=`expr \( $n + $M \) % $MAX`
TCFG="/tmp/deployment/${OFF}.conf"
gnunet-dht-hello -c $TCFG $HELLO
done
R=`expr $R + 1`
done
|