22 lines
474 B
Plaintext
Raw Normal View History

2016-12-20 19:53:35 +03:00
#!/bin/sh
2017-01-22 15:14:13 +03:00
# Copyright (c) 2013-2017, The PurpleI2P Project
#
# This file is part of Purple i2pd project and licensed under BSD3
#
# See full license text in LICENSE file at top of project tree
2016-12-20 19:53:35 +03:00
arch=$(uname -m)
2017-02-26 21:49:43 +03:00
screenfind=$(which screen)
2017-03-23 12:33:41 +03:00
if [ -z $screenfind ]; then
2017-03-14 15:03:30 +03:00
echo "Can't find 'screen' installed. That script needs it!";
exit 1;
2017-02-26 21:49:43 +03:00
fi
2017-06-01 20:45:47 +03:00
if [ $arch = "x86_64" ]; then
screen -Adm -S i2pd ./i2pd-amd64 --datadir=.
2016-12-20 19:53:35 +03:00
else
screen -Adm -S i2pd ./i2pd-i386 --datadir=.
fi