From 915a12eaad727841b55916be7bb1e92aae183bc1 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 29 Nov 2013 08:35:59 +0000 Subject: - detect GNUnet installation - detect if GNUnet is running --- contrib/gnunet-gns-import.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'contrib') diff --git a/contrib/gnunet-gns-import.sh b/contrib/gnunet-gns-import.sh index 502aeb9d8..268dd0467 100755 --- a/contrib/gnunet-gns-import.sh +++ b/contrib/gnunet-gns-import.sh @@ -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 -- cgit v1.2.3