diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-05 11:15:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-05 11:15:34 +0000 |
commit | e097895ea54b316c3ede8640f6dd49f864313a2d (patch) | |
tree | ffc1f1305adc628d052c8ca771dca2fa0de536b8 /contrib | |
parent | f014057b89dfa367b67fd128c47a56621bef619e (diff) | |
download | gnunet-e097895ea54b316c3ede8640f6dd49f864313a2d.tar.gz gnunet-e097895ea54b316c3ede8640f6dd49f864313a2d.zip |
-update default zone initialization (#3009)
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gnunet-gns-import.sh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/contrib/gnunet-gns-import.sh b/contrib/gnunet-gns-import.sh index 82d7cda6d..e0956ffcd 100755 --- a/contrib/gnunet-gns-import.sh +++ b/contrib/gnunet-gns-import.sh | |||
@@ -1,4 +1,25 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # This shell-script will import some GNS authorities into your GNS | 2 | # This shell-script will import some GNS authorities into your GNS |
3 | # namestore. | 3 | # namestore. |
4 | gnunet-namestore -a -e never -n fcfs -p -t PKEY -V 72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG | 4 | # |
5 | # By default, we create three GNS zones: | ||
6 | gnunet-identity -C master-zone | ||
7 | gnunet-identity -C short-zone | ||
8 | gnunet-identity -C private-zone | ||
9 | |||
10 | # Integrate those with the respective subsystems. | ||
11 | gnunet-identity -e short-zone -s gns-short | ||
12 | gnunet-identity -e master-zone -s gns-master | ||
13 | gnunet-identity -e private-zone -s gns-private | ||
14 | |||
15 | MASTER=`gnunet-identity -d | grep master-zone | awk '{print $3}` | ||
16 | SHORT=`gnunet-identity -d | grep short-zone | awk '{print $3}` | ||
17 | PRIVATE=`gnunet-identity -d | grep private-zone | awk '{print $3}` | ||
18 | |||
19 | # Link short and private zones into master zone | ||
20 | gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE | ||
21 | gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT | ||
22 | |||
23 | # Link GNUnet's FCFS zone into master zone | ||
24 | gnunet-namestore -z master-zone -a -e never -n fcfs -p -t PKEY -V 72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG | ||
25 | |||