- fix super-fast (< 20ms) retransmission behavior when the RTT is smaller than the...
[oweals/gnunet.git] / contrib / gnunet-gns-import.sh
index 502aeb9d8ab92276d4d3ee72597a8971bbab9436..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