mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-22 12:31:57 +03:00
19 lines
378 B
Bash
Executable File
19 lines
378 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Defines a user crontab with schedules as defined in settings.sh
|
|
# Used in conjunction with crontab-off.sh to toggle user crontab between states:
|
|
# on - start/stop xmrig at specified times
|
|
# off - do not start/stop xmrig
|
|
|
|
# Get settings
|
|
. settings.sh
|
|
. functions.sh
|
|
sleep 5
|
|
|
|
# Setup crontab for user
|
|
. crontab.sh
|
|
sleep 5
|
|
|
|
echo "${_GREEN}CRONTAB ENABLED${_RESET}"
|
|
|