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