From 9872fcb138b461fa308f5598029d53b6976b0992 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Fri, 12 Oct 2018 22:43:45 +0100 Subject: factory-default/net-p2p/xmr-stak: Add support for --poolconf and --rigid --- factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'factory-default') 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 $? -- cgit v1.2.3