forked from aionnetwork/aion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aion.sh
executable file
·41 lines (29 loc) · 1.08 KB
/
aion.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
cd "$(dirname $(realpath $0))"
KERVER=$(uname -r | grep -o "^4\.")
if [ "$KERVER" != "4." ]; then
echo "Warning! The linux kernel version must great or equal than 4."
fi
HW=$(uname -m)
if [ "$HW" != "x86_64" ]; then
echo "Warning! Aion blockchain platform must be running on the 64 bits architecture"
fi
DIST=$(lsb_release -i | grep -o "Ubuntu")
if [ "$DIST" != "Ubuntu" ]; then
echo "Warning! Aion blockchain is fully compatible with the Ubuntu distribution. Your current system is not Ubuntu distribution. It may has some issues."
fi
MAJVER=$(lsb_release -r | grep -o "[0-9][0-9]" | sed -n 1p)
if [ "$MAJVER" -lt "16" ]; then
echo "Warning! Aion blockchain is fully compatible with the Ubuntu version 16.04. Your current system is older than Ubuntu 16.04. It may has some issues."
fi
ARG=$@
#if [ "$ARG" == "--close" ]; then
# PID=$(<./tmp/aion.pid)
# kill -2 $PID
# rm -r ./tmp
# exit 0
#fi
# add execute permission to rt
chmod +x ./rt/bin/*
env EVMJIT="-cache=1" ./rt/bin/java -Xms4g \
-cp "./lib/*:./lib/libminiupnp/*:./mod/*" org.aion.Aion "$@"