-doxygen
[oweals/gnunet.git] / contrib / gnunet-gns-import.sh
index dacdf78878be5cbf3971ae19707ec609a0b8c167..268dd04670df181e14f33562fd606abf8efc7619 100755 (executable)
@@ -2,6 +2,20 @@
 # This shell-script will import some GNS authorities into your GNS
 # namestore.
 
+LOCATION=$(which gnunet-config)
+if [ -z $LOCATION ]
+then
+       echo "GNUnet command line tools not found, check environmental variables PATH and GNUNET_PREFIX" 
+       exit 1
+fi
+
+gnunet-arm -I 1> /dev/null 2>/dev/null
+if [ ! $? -eq 0 ]
+then
+       echo "GNUnet is not running, please start GNUnet before running import" 
+       exit 1
+fi
+
 options=''
 
 while getopts "c:" opt; do
@@ -31,6 +45,7 @@ gnunet-identity -C sks-zone $options
 # Integrate those with the respective subsystems.
 gnunet-identity -e short-zone -s gns-short $options
 gnunet-identity -e master-zone -s gns-master $options
+gnunet-identity -e master-zone -s gns-proxy $options
 gnunet-identity -e private-zone -s gns-private $options
 gnunet-identity -e sks-zone -s fs-sks $options