[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30961 - gnunet/contrib
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30961 - gnunet/contrib |
Date: |
Fri, 29 Nov 2013 09:35:59 +0100 |
Author: wachs
Date: 2013-11-29 09:35:59 +0100 (Fri, 29 Nov 2013)
New Revision: 30961
Modified:
gnunet/contrib/gnunet-gns-import.sh
Log:
- detect GNUnet installation
- detect if GNUnet is running
Modified: gnunet/contrib/gnunet-gns-import.sh
===================================================================
--- gnunet/contrib/gnunet-gns-import.sh 2013-11-29 08:32:20 UTC (rev 30960)
+++ gnunet/contrib/gnunet-gns-import.sh 2013-11-29 08:35:59 UTC (rev 30961)
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30961 - gnunet/contrib,
gnunet <=