xmrig-bash-scripts/start.sh
2019-08-11 10:27:39 +02:00

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}"