2018-11-13 14:37:35 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-10-23 13:51:11 +02:00
|
|
|
# this shell script will be replaced by a proper program in the future (probably)
|
|
|
|
#
|
|
|
|
|
2018-12-08 05:37:48 +01:00
|
|
|
if [ -z "$1" ]
|
|
|
|
then
|
|
|
|
url="https://i2p.rocks/i2procks.signed"
|
|
|
|
else
|
|
|
|
url="$1"
|
|
|
|
fi
|
|
|
|
|
2018-10-23 13:51:11 +02:00
|
|
|
echo "downloading $url"
|
2018-12-08 05:37:48 +01:00
|
|
|
|
|
|
|
if [ ! -d "$HOME/.lokinet" ]
|
|
|
|
then
|
2018-11-21 04:07:34 +01:00
|
|
|
mkdir $HOME/.lokinet
|
|
|
|
fi
|
2018-12-08 05:37:48 +01:00
|
|
|
|
2018-11-21 04:07:34 +01:00
|
|
|
wget -O $HOME/.lokinet/bootstrap.signed "$url" || echo "failed to download bootstrap from $url"
|