+# ;;
+# # other distros unknown
+# esac
+
+# pi libsodium-dev python-pip
+# cd /a/opt/joinmarket
+# # using develop branch, as it seems to be mostly bug fixes,
+# # and this is quite new software.
+# # note: python3 does not work.
+# # has seg fault error due to some bug, but it still works
+# pip install -r requirements.txt || [[ $? == 139 ]]
+# # note, the target must exist ahead of time, or bitcoin
+# # just overwrites the link, and it\'s not happy with an empty file,
+# # so we have to create the wallet, then move and link it.
+# s lnf -T /q/bitcoin/wallet.dat /nocow/.bitcoin/wallet.dat
+# s lnf -T /q/bitcoin/joinmarket.dat /nocow/.bitcoin/joinmarket.dat
+# # not technically needed, but seems cleaner not to have
+# # symlinks be root owned unlike everything else
+# s chown -h bitcoin:bitcoin /nocow/.bitcoin/*
+
+# for var in rpcuser rpcpassword; do
+# u="$(s sed -rn "s/^$var=(.*)/\1/p" /etc/bitcoin/bitcoin.conf)"
+# # escape backslashes
+# u="${u//\\/\\\\\\\\}"
+# # escape commas
+# u="${u//,/\\,}"
+# sed -ri "s,^(rpc_${var#rpc}\s*=).*,\1 $u," joinmarket.cfg
+# done
+# sed -ri "s/^\s*(blockchain_source\s*=).*/\1 bitcoin-rpc/" joinmarket.cfg
+# ### end joinmarket setup ###
+
+
+fi