-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmpm_start
executable file
·30 lines (28 loc) · 941 Bytes
/
mpm_start
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
#!/bin/bash
#
# Starts mpm with the specified base coin.
#
# @author lightspeed393
# @link https://github.com/cipig/mmtools
#
scriptpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $scriptpath/main
if [[ -z $1 ]]; then
echo "You must specify a base coin. (BTC, KMD, BCH, LTC, or DOGE)"
echo ""
echo "./mpm_start KMD"
exit 0
fi
if [[ $1 == "BTC" ]]; then
stdbuf -oL nohup ~/mmtools/mpm_run BTC bitcoin > $mmtoolslogfile &
elif [[ $1 == "KMD" ]]; then
stdbuf -oL nohup ~/mmtools/mpm_run KMD komodo > $mmtoolslogfile &
elif [[ $1 == "BCH" ]]; then
stdbuf -oL nohup ~/mmtools/mpm_run BCH bitcoin-cash > $mmtoolslogfile &
elif [[ $1 == "LTC" ]]; then
stdbuf -oL nohup ~/mmtools/mpm_run LTC litecoin > $mmtoolslogfile &
elif [[ $1 == "DOGE" ]]; then
stdbuf -oL nohup ~/mmtools/mpm_run DOGE dogecoin > $mmtoolslogfile &
else
echo "Choose from BTC, KMD, BCH, LTC or DOGE."
fi