git.iko.soy/xmrig-bash-scripts
on master help sign in
xmrig-bash-scripts/settings.sh
139 lines 2.7 kB history raw
1#!/bin/bash
3echo -e "${_GREEN}LOADING DEFAULT SETTINGS${_RESET}"
5_EMAIL="spam@iko.soy"
7_RECEIVE_WALLET="44FADBDhNRvjJszF5mLS4VCwZ71mY7ftfUErEisPoT724hb5eYuvuFqWthniY8dGPBTcWuBoeLrLJVkxLHCb1Lsd4DdbZzZ"
9_POOL_SERVER_URL="xmrpool.eu"
10_POOL_SERVER_PORT="5555"
12# Call function
13show_settings
15#######################################################################
16# DO NOT CHANGE AFTER THIS POINT UNLESS YOU KNOW WHAT YOU ARE DOING #
17#######################################################################
19_API_ID='null'
20_API_WORKER_ID="$HOSTNAME"
22_AUTOSAVE="true"
24_BACKGROUND="false"
26_COLORS="true"
28# call check_cpu
29check_cpu
31# call calc_threads
32calc_threads
34_CPU_ENABLED="true"
35_CPU_HUGE_PAGES="true"
36_CPU_HW_AES="$_AES_NI"
37_CPU_PRIORITY='null'
38_CPU_ASM="true"
39_CPU_CN="$_ENV_CPU_THREAD_AFFINITY"
41_CPU_CN_0="false"
42_CPU_CN_LITE_0="false"
44_OPENCL_ENABLED="false"
45_OPENCL_CACHE="true"
46_OPENCL_LOADER='null'
47_OPENCL_PLATFORM="AMD"
49_DONATE_LEVEL="0"
51_DONATE_OVER_PROXY="1"
53_HTTP_ENABLED="true"
54_HTTP_HOST=$(hostname --all-ip-addresses | awk '{print $1}')
55_HTTP_PORT="8080"
56_HTTP_ACCESS_TOKEN='null'
57_HTTP_RESTRICTED="false"
59_LOG_FILE='null'
61_POOLS_ALGO="cn/r"
62_POOLS_URL="$_POOL_SERVER_URL:$_POOL_SERVER_PORT"
63_POOLS_USER="$_RECEIVE_WALLET"
64_POOLS_PASS="$HOSTNAME:$_EMAIL"
65_POOLS_RIG_ID="$HOSTNAME"
66_POOLS_NICEHASH="true"
67_POOLS_KEEPALIVE="true"
68_POOLS_ENABLED="true"
69_POOLS_TLS='null'
70_POOLS_TLS_FINDERPRINT='null'
71_POOLS_DAEMON="false"
73_PRINT_TIME="30"
75_RETRIES="5"
76_RETRIES_PAUSE="5"
78_SYSLOG="false"
80_USER_AGENT='null'
82_WATCH="true"
84# Set working directory
85_WORK_DIR="$(pwd)"
86cd $_WORK_DIR
88# Set repository from which to get the source
89_XMRIG_REPO="https://github.com/xmrig/xmrig.git"
91# Set name of folder to create when cloning from REPO
92_XMRIG_CLONE="xmrig-cpu"
94# Set clone directory path
95_XMRIG_CLONE_LOCATION="$_WORK_DIR/$_XMRIG_CLONE"
97# Set branch from which to build
98_XMRIG_BRANCH="master"
100# Set build directory
101_XMRIG_BUILD="build"
103# Set build directory location
104_XMRIG_BUILD_LOCATION="$_XMRIG_CLONE_LOCATION/$_XMRIG_BUILD"
106# Set where to install binary
107_XMRIG_TARGET_LOCATION="/usr/bin/"
109# Set mysettings file
110_MYSETTINGS_FILE="mysettings.sh"
112# Set mysettings file location
113_MYSETTINGS_FILE_LOCATION="$_WORK_DIR/$_MYSETTINGS_FILE"
115# Set the config file name
116_XMRIG_CONFIG="config.json"
118# Set config location
119_XMRIG_CONFIG_LOCATION="$_WORK_DIR/$_XMRIG_CONFIG"
121# Set values for crontab
122_USER_CRONSTART="17"
123_USER_CRONSTOP="8"
124_USER_CRONDAYS="1-5"
126# Set the name of the screen created by start script
127_XMRIG_SCREEN="xmrig-cpu"
129# Run apt maintenance
130# 1 = yes 0 = no
131_APT_MAINETANCE="1"
133# Run install of depends
134# 1 = yes 0 = no
135_APT_DEPENDS="1"
138echo -e "${_CYAN}DEFAULT SETTINGS LOADED${_RESET}"