mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-25 09:23:16 +03:00
28 lines
441 B
Bash
Executable File
28 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# When this script is:
|
|
# * run by crontab, load the settings
|
|
# * run by install, do not load settings
|
|
|
|
# Reload settings and functions for when running standalone
|
|
. functions.sh
|
|
. settings.sh
|
|
|
|
if ! screen -list | grep -q "$_XMRIG_SCREEN"; then
|
|
|
|
# Call functions
|
|
show_mysettings
|
|
start_xmrig
|
|
|
|
# List screen
|
|
screen -ls
|
|
else
|
|
|
|
# List screen
|
|
screen -ls
|
|
|
|
fi
|
|
|
|
echo "${_GREEN}MINING STARTED${_RESET}"
|
|
|