mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-24 15:05:40 +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}"
|
|
|