mirror of
https://github.com/seanwhe/xmrig-bash-scripts.git
synced 2024-11-28 05:26:22 +03:00
23 lines
381 B
Bash
Executable File
23 lines
381 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# When this script is:
|
|
# * run by crontab, load the settings
|
|
# * run by install, do not load settings
|
|
|
|
echo "${_GREEN}END MINING STARTED${_RESET}"
|
|
|
|
if [ -z "$_XMRIG_SCREEN" ]; then
|
|
# Load settings when run by crontab
|
|
. settings.sh
|
|
. functions.sh
|
|
|
|
# Call function
|
|
stop_xmrig
|
|
else
|
|
# Call function
|
|
stop_xmrig
|
|
fi
|
|
|
|
echo "${_CYAN}END MINING STOPPED${_RESET}"
|
|
|