diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-29 08:35:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-29 08:35:59 +0000 |
commit | 915a12eaad727841b55916be7bb1e92aae183bc1 (patch) | |
tree | 0cef592629c1e8761b24669308550c2639e6e40f /contrib | |
parent | a5348d0a91ed48db9dfaef827245af210d01a220 (diff) | |
download | gnunet-915a12eaad727841b55916be7bb1e92aae183bc1.tar.gz gnunet-915a12eaad727841b55916be7bb1e92aae183bc1.zip |
- detect GNUnet installation
- detect if GNUnet is running
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gnunet-gns-import.sh | 14 |
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 | ||
5 | LOCATION=$(which gnunet-config) | ||
6 | if [ -z $LOCATION ] | ||
7 | then | ||
8 | echo "GNUnet command line tools not found, check environmental variables PATH and GNUNET_PREFIX" | ||
9 | exit 1 | ||
10 | fi | ||
11 | |||
12 | gnunet-arm -I 1> /dev/null 2>/dev/null | ||
13 | if [ ! $? -eq 0 ] | ||
14 | then | ||
15 | echo "GNUnet is not running, please start GNUnet before running import" | ||
16 | exit 1 | ||
17 | fi | ||
18 | |||
5 | options='' | 19 | options='' |
6 | 20 | ||
7 | while getopts "c:" opt; do | 21 | while getopts "c:" opt; do |