git.iko.soy/xmrig-bash-scripts
on master help sign in
22 lines 381 B history raw
1#!/bin/bash
3# When this script is:
4# * run by crontab, load the settings
5# * run by install, do not load settings
7echo "${_GREEN}END MINING STARTED${_RESET}"
9if [ -z "$_XMRIG_SCREEN" ]; then
10 # Load settings when run by crontab
11 . settings.sh
12 . functions.sh
14 # Call function
15 stop_xmrig
16else
17 # Call function
18 stop_xmrig
19fi
21echo "${_CYAN}END MINING STOPPED${_RESET}"