summaryrefslogtreecommitdiff
path: root/factory-default
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2018-02-14 23:21:56 +0000
committerBertrand Jacquin <bertrand@jacquin.bzh>2018-03-07 01:30:14 +0000
commit9aaa24096db8642d70e1b032fffb55c5ccbdf6d7 (patch)
treea5713b8cf25c7604fdf7d4c4b054818d2677bad5 /factory-default
parentprofiles/desktop: Disable http and geoip USE flag for app-admin/syslog-ng (diff)
downloadportage-9aaa24096db8642d70e1b032fffb55c5ccbdf6d7.tar.xz
factory-default/net-p2p/xmr-stak: Add support for --tls-url
Diffstat (limited to 'factory-default')
-rw-r--r--factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak1
-rwxr-xr-xfactory-default/net-p2p/xmr-stak/etc/init.d/xmr-stak13
2 files changed, 12 insertions, 2 deletions
diff --git a/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak b/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak
index 755493ac..cc6d9d7f 100644
--- a/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak
+++ b/factory-default/net-p2p/xmr-stak/etc/conf.d/xmr-stak
@@ -1,5 +1,6 @@
# Pool url and port
XMR_STAK_POOL_URL="xmrpool.eu:3333"
+XMR_STAK_POOL_TLS_URL="xmrpool.eu:9999"
# Pool user name or wallet address
XMR_STAK_POOL_USER="44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A"
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 d9ef64ea..6cd3b187 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
@@ -11,6 +11,7 @@
# Donate to Monero developers
: ${XMR_STAK_POOL_URL:=xmrpool.eu:3333}
+: ${XMR_STAK_POOL_TLS_URL:=xmrpool.eu:9999}
: ${XMR_STAK_POOL_USER:=44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A}
: ${XMR_STAK_POOL_PASS:=x}
@@ -29,6 +30,14 @@ start() {
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
+ local _opts
+
+ if [[ -n "${XMR_STAK_POOL_TLS_URL}" ]] ; then
+ _opts+=( --tls-url "${XMR_STAK_POOL_TLS_URL}" )
+ else
+ _opts+=( --url "${XMR_STAK_POOL_URL}" )
+ fi
+
ebegin "Starting ${RC_SVCNAME}"
/usr/bin/tmux -L "${RC_SVCNAME}" \
new-session -d /usr/bin/xmr-stak \
@@ -36,9 +45,9 @@ start() {
--config "${XMR_STAK_CONFIG}" \
--cpu "${XMR_STAK_CONFIG_CPU}" \
--amd "${XMR_STAK_CONFIG_AMD}" \
- --url "${XMR_STAK_POOL_URL}" \
--user "${XMR_STAK_POOL_USER}" \
- --pass "${XMR_STAK_POOL_PASS}"
+ --pass "${XMR_STAK_POOL_PASS}" \
+ ${_opts[@]}
eend $?
}