summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfactory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak4
1 files changed, 4 insertions, 0 deletions
diff --git a/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak b/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak
index 6cd3b187..0ee69ed4 100755
--- a/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak
+++ b/factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak
@@ -6,6 +6,7 @@
: ${XMR_STAK_CURRENCY:=monero}
: ${XMR_STAK_CONFIG:=/etc/${RC_SVCNAME}/main.conf}
+: ${XMR_STAK_CONFIG_POOL:=/etc/${RC_SVCNAME}/pools.conf}
: ${XMR_STAK_CONFIG_CPU:=/etc/${RC_SVCNAME}/cpu.conf}
: ${XMR_STAK_CONFIG_AMD:=/etc/${RC_SVCNAME}/amd.conf}
@@ -13,6 +14,7 @@
: ${XMR_STAK_POOL_URL:=xmrpool.eu:3333}
: ${XMR_STAK_POOL_TLS_URL:=xmrpool.eu:9999}
: ${XMR_STAK_POOL_USER:=44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A}
+: ${XMR_STAK_POOL_RIGID:=}
: ${XMR_STAK_POOL_PASS:=x}
checkconfig() {
@@ -43,9 +45,11 @@ start() {
new-session -d /usr/bin/xmr-stak \
--currency "${XMR_STAK_CURRENCY}" \
--config "${XMR_STAK_CONFIG}" \
+ --poolconf "${XMR_STAK_CONFIG_POOL}" \
--cpu "${XMR_STAK_CONFIG_CPU}" \
--amd "${XMR_STAK_CONFIG_AMD}" \
--user "${XMR_STAK_POOL_USER}" \
+ --rigid "${XMR_STAK_POOL_RIGID}" \
--pass "${XMR_STAK_POOL_PASS}" \
${_opts[@]}
eend $?