aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-29 08:35:59 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-29 08:35:59 +0000
commit915a12eaad727841b55916be7bb1e92aae183bc1 (patch)
tree0cef592629c1e8761b24669308550c2639e6e40f
parenta5348d0a91ed48db9dfaef827245af210d01a220 (diff)
downloadgnunet-915a12eaad727841b55916be7bb1e92aae183bc1.tar.gz
gnunet-915a12eaad727841b55916be7bb1e92aae183bc1.zip
- detect GNUnet installation
- detect if GNUnet is running
-rwxr-xr-xcontrib/gnunet-gns-import.sh14
1 files changed, 14 insertions, 0 deletions
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 @@
2# This shell-script will import some GNS authorities into your GNS 2# This shell-script will import some GNS authorities into your GNS
3# namestore. 3# namestore.
4 4
5LOCATION=$(which gnunet-config)
6if [ -z $LOCATION ]
7then
8 echo "GNUnet command line tools not found, check environmental variables PATH and GNUNET_PREFIX"
9 exit 1
10fi
11
12gnunet-arm -I 1> /dev/null 2>/dev/null
13if [ ! $? -eq 0 ]
14then
15 echo "GNUnet is not running, please start GNUnet before running import"
16 exit 1
17fi
18
5options='' 19options=''
6 20
7while getopts "c:" opt; do 21while getopts "c:" opt; do