-
Notifications
You must be signed in to change notification settings - Fork 0
/
startmining
266 lines (266 loc) · 5.96 KB
/
startmining
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
#version 0.2
#Copyright Guus Ellenkamp
#Will apply common Copyright agreement soon
#For now this script may be used and adapted as-is as long as I, Guus Ellenkamp, am considered as the original author and copyright holder of the basic script.
# $program holds the link to the executable.
program=~/git/xmrig/build/xmrig
# $port holds the port you want to mine to.
port="3333"
# $user holds the username for the pool. In case of Electroneum it is mostly the public address.
user="etnk67tbdXAB45wCP7c3ukE4fLNpQyQasYiDZNWenzUWEgfjgJxXdjjizpymwzuLfuNBznFocLD5KB7iwLq1YRmJ4BCvbkdwRm"
# $password holds the password. In case of ETN it is normally just 'x'.
password="x"
if [ -z "$1" ]
then
echo "No pool name given. Setting to poolca."
site="poolca"
else
site=$1
fi
if [ -z "$2" ]
then
echo "No number of threads given. Setting to 1."
threads=1
else
threads=$2
fi
case $site in
2zo)
par='stratum+tcp://etn.2zo.pw:'
port=3032
;;
asia)
par='stratum+tcp://asiapool.electroneum.com:'
;;
aicrypto)
par='stratum+tcp://etn-pool.ai-crypto.com:'
;;
austrohash)
par='stratum+tcp://etn.austrohash.at:'
port=2010
;;
baliwae)
par='stratum+tcp://pool.etn.baliwae.com:';
;;
bestpool)
par='stratum+tcp://etn-pool.bestminepool.com:';
;;
cylim)
par='stratum+tcp://etnpool.cylim.com.my:';
;;
cryptobits)
par='stratum+tcp://etn.mining.cryptobits.ltd:'
port=6333
;;
cryptoclub)
par='stratum+tcp://etn.crypto-coins.club:'
port=21020
;;
cryptome)
par='stratum+tcp://etn.cryptonight.me:'
;;
dotpool)
par='stratum+tcp://dotpool.org:'
;;
dedpewl)
par='stratum+tcp://etnus.dedpewl.com:'
;;
easyblock)
par='stratum+tcp://pool.easyblock.pro:'
;;
elasia)
par='stratum+tcp://asiapool.electroneum.com:'
;;
eleu)
par='stratum+tcp://eupool.electroneum.com:'
;;
etnlife)
par='stratum+tcp://etn.life:'
;;
etnpools)
par='stratum+tcp://www.etnpools.com:'
;;
euxmr)
par='stratum+tcp://82.211.23.18:';
;;
fairhash)
par='stratum+tcp://etn.fairhash.org:'
;;
hashvault)
par='stratum+tcp://pool.electroneum.hashvault.pro:'
port=3333
;;
herominers)
par='stratum+tcp://etn.herominers.club:'
;;
io)
par='stratum+tcp://intense.miningpools.us:'
;;
life)
par='stratum+tcp://etn.life:'
;;
minerfact)
par='stratum+tcp://etn.minerfact.com:'
port=4100
;;
mobile)
par='stratum+tcp://electroneum.mobile-mining.com:'
;;
monero)
par='stratum+tcp://vegas-1.xmrpool.net:'
port=3333
key=48Df8sy1Ju6EXuyszTgUQmVtzgkxC4ktpSQGmRZUx8kQ7iWm7bpD6jWS8mn6LCEJtA3UzYfhfbTUS2XUdSKd6VrLC8oEH76
user=$key
password=worker
;;
nanopool)
par='stratum+tcp://etn-asia1.nanopool.org:'
port=13333
;;
nocroom)
par='stratum+tcp://etn.pool.nocroom.com:'
;;
pislv)
par='stratum+tcp://electroneum.pis.lv:'
;;
ppua)
par='stratum+tcp://electroneum.pp.ua:';
;;
pw)
par='stratum+tcp://electroneumpool.pw:';
;;
pulsarcrypt)
par='stratum+tcp://pulsarcrypt.com:'
;;
reidospl)
par='stratum+tcp://pool.sp1.etn.reidocoin.com.br:'
port=9501
difficulty=+500
;;
rustylock)
par='stratum+tcp://etn.rustylock.club:'
port=23333
;;
strongpool)
par='strongpool.online:';
;;
sytes)
par='etnpool.sytes.net:';
;;
topmining)
par=' top-miningpool.eu:';
;;
ucrypto)
par='stratum+tcp://etn.ucrypto.com:'
;;
vip)
par='stratum+tcp://mine.electroneum.vip:'
;;
*)
if [ $site = 'cryptox' ]
then par='stratum+tcp://etn.cryptoxpool.com:'
fi
if [ $site = 'cryptoxie' ]
then par='stratum+tcp://etnpool.cryptoxie.com:'
fi
if [ $site = 'myetnuk' ]
then par='stratum+tcp://myetn.uk:'
fi
if [ $site = 'netforspeed' ]
then par='stratum+tcp://electro.netforspeed.com:'
# port=3434
fi
if [ $site = 'poolnet' ]
then par='stratum+tcp://etnpool.net:'
port=3333
fi
if [ $site = 'etnhash' ]
then par='stratum+tcp://etnhash.com:'
fi
if [ $site = 'eu' ]
then par='stratum+tcp://eupool.electroneum.com:'
fi
if [ $site = 'iopool' ]
#etnpool.io
then par='stratum+tcp://intense.miningpools.us:'
fi
if [ $site = 'miners' ]
then par='stratum+tcp://etnminers.com:'
fi
if [ $site = 'miningpool' ]
then par='stratum+tcp://pool.electroneum-mining-pool.com:'
fi
if [ $site = 'mobile' ]
then par='stratum+tcp://electroneum.mobile-mining.com:'
fi
if [ $site = 'us' ]
then par='stratum+tcp://uspool.electroneum.com:'
fi
if [ $site = 'hashparty' ]
#mines to us site
then par='stratum+tcp://us-etnpool.hashparty.io:'
fi
if [ $site = 'hashpartyasia' ]
then par='stratum+tcp://asia-etn-pool.hashparty.io:'
fi
if [ $site = 'hashpartyuk' ]
then par='stratum+tcp://uk-etn-pool.hashparty.io:'
fi
if [ $site = 'hashpartyus' ]
then par='stratum+tcp://us-etn-pool.hashparty.io:'
fi
if [ $site = 'space' ]
then par='stratum+tcp://pool.electroneum.space:'
fi
if [ $site = 'uax' ]
then par='stratum+tcp://etn.uax.io:'
fi
if [ $site = 'elfr' ]
then par='stratum+tcp://eu2.electromine.fr:'
fi
if [ $site = 'fr' ]
then par='stratum+tcp://eu2.electromine.fr:'
fi
if [ $site = 'charts' ]
then par='stratum+tcp://pool.electroneumcharts.com:'
fi
if [ $site = 'poolca' ]
then par='stratum+tcp://miner.etnpool.ca:'
port=3343
fi
if [ $site = 'poolclub' ]
then par='stratum+tcp://us.etnpool.club:'
fi
if [ $site = 'ovh' ]
then par='stratum+tcp://electroneum.cryptominingpool.eu:'
fi
if [ $site = 'supernova' ]
then par='stratum+tcp://etn.suprnova.cc:'
user="guus.etn"
password="password"
port=8875
fi
if [ $site = 'easyhash' ]
then
par='stratum+tcp://etn.easyhash.io:'
port=3630
fi
if [ $site = 'xzpool' ]
then
par='stratum+tcp://etn.xzpool.com:'
fi
if [ $site = 'minekitten' ]
then
par='stratum+tcp://etnpool.minekitten.io:'
fi
if [ -z "$par" ]
then
echo 'Wrong parameter given. Setting pool to easyhash.'
par='stratum+tcp://etn.easyhash.io:'
port=3630
fi
;;
esac
parameters="-a cryptonight -o $par$port -u $user$difficulty -p $password -t $threads --donate-level=1"
echo "$program $parameters"
$program $parameters