lokinet/lokinet-bootstrap

20 lines
369 B
Plaintext
Raw Normal View History

2018-11-13 13:37:35 +00:00
#!/usr/bin/env bash
# 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
echo "downloading $url"
2018-12-08 04:37:48 +00:00
if [ ! -d "$HOME/.lokinet" ]
then
mkdir $HOME/.lokinet
fi
2018-12-08 04:37:48 +00:00
wget -O $HOME/.lokinet/bootstrap.signed "$url" || echo "failed to download bootstrap from $url"