-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathentry.sh
49 lines (41 loc) · 967 Bytes
/
entry.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
#!/bin/bash
if [ -z "$EMAIL" ]; then
echo "Please set the environment variable for EMAIL!"
exit 1
fi
if [ -z "$CURR" ]; then
echo "Please set the environment variable for CURR!"
exit 1
fi
CURRENCY=${CURR,,}
case $CURRENCY in
bcn)
POOL="stratum+tcp://bcn.pool.minergate.com:45550"
;;
xmr)
POOL="stratum+tcp://xmr.pool.minergate.com:45560"
;;
mcn)
POOL="stratum+tcp://mcn.pool.minergate.com:45640"
;;
dsh)
POOL="stratum+tcp://dsh.pool.minergate.com:45720"
;;
qcn)
POOL="stratum+tcp://qcn.pool.minergate.com:45570"
;;
inf8)
POOL="stratum+tcp://inf8.pool.minergate.com:45750"
;;
fcn)
POOL="stratum+tcp://fcn.pool.minergate.com:45610"
;;
xdn)
POOL="stratum+tcp://xdn.pool.minergate.com:45620"
;;
*)
POOL="stratum+tcp://xmr.pool.minergate.com:45560"
;;
esac
echo "Starting with Pool: $POOL for UserID: $EMAIL"
exec minerd -a cryptonight -o $POOL -u $EMAIL -p x