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) |
-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 82d7cda6d0..e0956ffcd2 100755 --- a/contrib/gnunet-gns-import.sh +++ b/contrib/gnunet-gns-import.sh @@ -1,4 +1,25 @@ #!/bin/sh # This shell-script will import some GNS authorities into your GNS # namestore. -gnunet-namestore -a -e never -n fcfs -p -t PKEY -V 72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG +# +# By default, we create three GNS zones: +gnunet-identity -C master-zone +gnunet-identity -C short-zone +gnunet-identity -C private-zone + +# Integrate those with the respective subsystems. +gnunet-identity -e short-zone -s gns-short +gnunet-identity -e master-zone -s gns-master +gnunet-identity -e private-zone -s gns-private + +MASTER=`gnunet-identity -d | grep master-zone | awk '{print $3}` +SHORT=`gnunet-identity -d | grep short-zone | awk '{print $3}` +PRIVATE=`gnunet-identity -d | grep private-zone | awk '{print $3}` + +# Link short and private zones into master zone +gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE +gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT + +# Link GNUnet's FCFS zone into master zone +gnunet-namestore -z master-zone -a -e never -n fcfs -p -t PKEY -V 72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG + |