git.iko.soy/xmrig-bash-scripts
on 92319bc help sign in
install.sh+11
since splitsnapshots
unifiedsplit
@@ -30,27 +30,38 @@ fi
30
30
31# Load functions
31# Load functions
32. functions.sh
32. functions.sh
33+sleep 5
33
34
34# Get settings
35# Get settings
35. settings.sh
36. settings.sh
37+sleep 5
36
38
37# Update system
39# Update system
38. maintenance.sh
40. maintenance.sh
41+sleep 5
39
42
40# Install dependencies
43# Install dependencies
41. depends.sh
44. depends.sh
45+sleep 5
42
46
43# User input
47# User input
44. input.sh
48. input.sh
49+sleep 5
45
50
46# Stop running instance
51# Stop running instance
47. stop.sh
52. stop.sh
48
53
49# Get source and build by sourcing our build file
54# Get source and build by sourcing our build file
50. build.sh
55. build.sh
56+sleep 5
51
57
52# Create a config.json
58# Create a config.json
53. config.sh
59. config.sh
60+sleep 5
61+
62+# Setup crontab for user
63+. crontab.sh
64+sleep 5
54
65
55# Unset REPO variable so start script will execute program
66# Unset REPO variable so start script will execute program
56SCREEN=""
67SCREEN=""
settings.sh+5−5
@@ -2,12 +2,12 @@
2
2
3echo -e "${_GREEN}LOADING DEFAULT SETTINGS${_RESET}"
3echo -e "${_GREEN}LOADING DEFAULT SETTINGS${_RESET}"
4
4
5−_EMAIL="spam@iko.soy"
5+_EMAIL="miners@prepaidmeters.com"
6
6
7−_RECEIVE_WALLET="44FADBDhNRvjJszF5mLS4VCwZ71mY7ftfUErEisPoT724hb5eYuvuFqWthniY8dGPBTcWuBoeLrLJVkxLHCb1Lsd4DdbZzZ"
7+_RECEIVE_WALLET="854sqm2Cm4TB2XgPHWqSPSbnFAe3SMzdEDzZHpukQ8NHBPFropbnkFmEKiZPgwjMFC9PTjaFscR2UU6ZwFCqJzGMUiZVbTM"
8
8
9−_POOL_SERVER_URL="xmrpool.eu"
9+_POOL_SERVER_URL="pool.supportxmr.com"
10−_POOL_SERVER_PORT="5555"
10+_POOL_SERVER_PORT="3333"
11
11
12# Call function
12# Call function
13show_settings
13show_settings
@@ -46,7 +46,7 @@ _OPENCL_CACHE="true"
46_OPENCL_LOADER='null'
46_OPENCL_LOADER='null'
47_OPENCL_PLATFORM="AMD"
47_OPENCL_PLATFORM="AMD"
48
48
49−_DONATE_LEVEL="0"
49+_DONATE_LEVEL="5"
50
50
51_DONATE_OVER_PROXY="1"
51_DONATE_OVER_PROXY="1"
52
52
start.sh+7−32
@@ -10,46 +10,21 @@ echo "${_GREEN}MINING STARTED${_RESET}"
10. functions.sh
10. functions.sh
11. settings.sh
11. settings.sh
12
12
13−# if ! screen -list | grep -q "$_XMRIG_SCREEN"; then
13+if ! screen -list | grep -q "$_XMRIG_SCREEN"; then
14
14
15 # Call functions
15 # Call functions
16 show_settings
16 show_settings
17 show_mysettings
17 show_mysettings
18− # start_xmrig
18+ start_xmrig
19
19
20 # List screen
20 # List screen
21− # screen -ls
21+ screen -ls
22−# else
22+else
23
23
24 # List screen
24 # List screen
25− # screen -ls
25+ screen -ls
26−
26+
27−# fi
27+fi
28−echo "[Unit]" | sudo tee /etc/systemd/system/xmrig.service
29−echo "Description=XMRIG service" | sudo tee -a /etc/systemd/system/xmrig.service
30−echo "After=network.target" | sudo tee -a /etc/systemd/system/xmrig.service
31−echo "StartLimitIntervalSec=0" | sudo tee -a /etc/systemd/system/xmrig.service
32−echo "[Service]" | sudo tee -a /etc/systemd/system/xmrig.service
33−echo "Type=simple" | sudo tee -a /etc/systemd/system/xmrig.service
34−echo "Restart=always" | sudo tee -a /etc/systemd/system/xmrig.service
35−echo "RestartSec=3" | sudo tee -a /etc/systemd/system/xmrig.service
36−echo "User=root" | sudo tee -a /etc/systemd/system/xmrig.service
37−echo "ExecStart=$_XMRIG_BUILD_LOCATION/xmrig --config=$_XMRIG_CONFIG_LOCATION" | sudo tee -a /etc/systemd/system/xmrig.service
38−echo "" | sudo tee -a /etc/systemd/system/xmrig.service
39−echo "[Install]" | sudo tee -a /etc/systemd/system/xmrig.service
40−echo "WantedBy=multi-user.target" | sudo tee -a /etc/systemd/system/xmrig.service
41−
42−echo "STARTING XMRIG/SERVICES"
43−
44−sudo service logrotate start
45−sudo service ntp start
46−sudo service xmrig start
47−
48−echo "STARTING XMRIG/SERVICES @ BOOT"
49−
50−sudo systemctl enable logrotate
51−sudo systemctl enable ntp
52−sudo systemctl enable xmrig
53
28
54echo "${_CYAN}MINING RUNNING${_RESET}"
29echo "${_CYAN}MINING RUNNING${_RESET}"
55echo "${_YELLOW} The process is running in a screen session."
30echo "${_YELLOW} The process is running in a screen session."