-
Notifications
You must be signed in to change notification settings - Fork 6
/
load_mainnet.sh
executable file
·38 lines (30 loc) · 964 Bytes
/
load_mainnet.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
#!/bin/bash
# create geth.ipc
./log_nodeInfo.sh
port=30303
rpcport=8545
# check OS
os="$(uname -s)"
# if Mac OS X
if [ "$os" = 'Darwin' ]; then
# Create IPC file
echo "exit" | geth --verbosity 2 --datadir=$PWD/simbel/data_mainnet console
sleep 1
tmux new-session -d -s geth "geth --verbosity 4 --datadir=$PWD/simbel/data_mainnet console"
sleep 5
exit
else
arch="$(dpkg --print-architecture)"
fi
# if Raspberry Pi
if [[ "$arch" == 'armhf' ]]; then
echo -e "\033[0;31mIt appears you're installing Simbel on a Raspberry Pi! :)"
echo "exit" | ./geth --verbosity 2 --datadir=$PWD/simbel/data_mainnet console
tmux new-session -d -s geth "./geth --verbosity 3 --fast --cache=1024 --datadir=$PWD/simbel/data_mainnet console"
# if Linux but not Raspberry Pi
else
# create IPC file
echo "exit" | geth --verbosity 2 --datadir=$PWD/simbel/data_mainnet console
sleep 5
tmux new-session -d -s geth "geth --verbosity 3 --datadir=$PWD/simbel/data_mainnet console"
fi