diff options
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 |