-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall-zil.sh
77 lines (53 loc) · 2.2 KB
/
install-zil.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
cat <<EOO
#################################################################
# Zilliqa (ZIL) Mining Switch for ethOS
# Project: https://github.com/71ae/crypto-zil-miner-switch-ethos
#################################################################
We're making use of some additional system libraries and the
PhoenixMiner, so we need to take care of some requirements.
In case of any errors please submit an issue at:
https://github.com/71ae/crypto-zil-miner-switch-ethos/issues/new
#################################################################
EOO
sleep 5
# Install requirements
sudo apt-get-ubuntu -qq -y update
sudo apt-get-ubuntu -qq -y install libwww-perl liblwp-protocol-https-perl libjson-perl libjson-xs-perl
bash <(curl -s https://raw.githubusercontent.com/cynixx3/third-party-miner-installer-for-ethos/master/miner-manager) phoenixminer install
# Kill existing Switch Loop
pkill zil-loop.sh
# Download ZIL Mining Switch for ethOS
cd ~
git clone --depth 1 https://github.com/71ae/crypto-zil-miner-switch-ethos.git
cd crypto-zil-miner-switch-ethos
# Copy files to target directory
cd ~
[ ! -d zil-miner-switch ] && mkdir zil-miner-switch
cp -p crypto-zil-miner-switch-ethos/* zil-miner-switch/
cp -p crypto-zil-miner-switch-ethos/src/* zil-miner-switch/
if [ ! -e zil-miner-switch/mineropts.txt ]; then
cp -p crypto-zil-miner-switch-ethos/config/mineropts.txt zil-miner-switch/
fi
if [ ! -e zil-miner-switch/minerpool.txt ]; then
cp -p crypto-zil-miner-switch-ethos/config/minerpool.txt zil-miner-switch/
fi
# Clean up
rm -rf crypto-zil-miner-switch-ethos
sudo apt-get-ubuntu -qq clean
cat <<EOO
#################################################################
Now please edit the pool and wallet configuration!
Execute:
nano zil-miner-switch/minerpool.txt
After you've done this, you can start this toolsuite with:
bash zil-miner-switch/zil-init.sh
To make sure the ZIL Mining Switcher also starts when you power on your rig,
you also can add the following line into custom.sh (execute nano custom.sh)
before the "exit" line:
bash -c zil-miner-switch/zil-init.sh
We're ready to go...
#################################################################
EOO
# to-do: download release instead
# configure