diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2018-10-12 22:43:45 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2018-10-12 22:43:45 +0100 |
commit | 9872fcb138b461fa308f5598029d53b6976b0992 (patch) | |
tree | d5997fe8b9ae6ef1345de05de4c18b821cd1ec18 | |
parent | factory-default/net-p2p/xmr-stak: Bump XMR_STAK_CURRENCY (diff) | |
download | portage-9872fcb138b461fa308f5598029d53b6976b0992.tar.xz |
factory-default/net-p2p/xmr-stak: Add support for --poolconf and --rigid
-rwxr-xr-x | factory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak | 4 |
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 $? |