From a2b12bfd4df9813d47992315d9a7839b91215253 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Fri, 4 Jun 2021 00:18:59 -0500 Subject: [PATCH] Improve message on unsupported devices when starting joininbox --- rootfs/standard/usr/bin/mynode-joinmarket | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rootfs/standard/usr/bin/mynode-joinmarket b/rootfs/standard/usr/bin/mynode-joinmarket index 6a69747a..2b56a622 100755 --- a/rootfs/standard/usr/bin/mynode-joinmarket +++ b/rootfs/standard/usr/bin/mynode-joinmarket @@ -3,8 +3,13 @@ # mynode-joinmarket # This script needs to be run with sudo so it can run as the joinmarket user -sudo -u joinmarket bash -c "cd /home/joinmarket/joinmarket-clientserver; bash --rcfile <(echo '. ~/.bashrc; source ./jmvenv/bin/activate; cd scripts')" +source /usr/share/mynode/mynode_config.sh +if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then + sudo -u joinmarket bash -c "cd /home/joinmarket/joinmarket-clientserver; bash --rcfile <(echo '. ~/.bashrc; source ./jmvenv/bin/activate; cd scripts')" +else + echo "Joinmarket is currently only supported on RP4 and x86" +fi #sudo su joinmarket #cd ~/joinmarket-clientserver/ #source jmvenv/bin/activate