2016-01-03 14:33:56 +00:00
|
|
|
#! @bash@/bin/bash
|
2022-11-07 22:30:00 +00:00
|
|
|
set -eo pipefail
|
2016-01-03 14:33:56 +00:00
|
|
|
PATH=@coreutils@/bin:$PATH
|
2022-12-10 14:45:00 +00:00
|
|
|
export CLASSPATH=$(find @outFreenet@/deps/ -name "*.jar"|grep -v bcprov-jdk15on-1.48.jar|tr $'\n' :)
|
|
|
|
CLASSPATH=$CLASSPATH:@outFreenet@/share/freenet/freenet-ext.jar:@outFreenet@/share/freenet/freenet.jar
|
2015-10-25 05:34:58 +00:00
|
|
|
|
|
|
|
export FREENET_HOME="$HOME/.local/share/freenet"
|
2022-11-07 22:30:00 +00:00
|
|
|
if [ -n "$XDG_DATA_HOME" ] ; then
|
|
|
|
FREENET_HOME="$XDG_DATA_HOME/freenet"
|
2015-10-25 05:34:58 +00:00
|
|
|
fi
|
|
|
|
|
2022-11-07 22:30:00 +00:00
|
|
|
mkdir -p -- $FREENET_HOME
|
2015-10-25 05:34:58 +00:00
|
|
|
|
2022-11-07 22:30:00 +00:00
|
|
|
cp -u -- @seednodes@ $FREENET_HOME/seednodes.fref
|
|
|
|
chmod u+rw -- $FREENET_HOME/seednodes.fref
|
2015-10-25 05:34:58 +00:00
|
|
|
|
2022-11-07 22:30:00 +00:00
|
|
|
cd -- $FREENET_HOME
|
2023-04-19 19:15:00 +00:00
|
|
|
exec @jre@/bin/java -Xmx1024M freenet.node.NodeStarter "$@"
|