From 83f25350b127b8f4b8af8965261ecb2c4c9a4093 Mon Sep 17 00:00:00 2001 From: poka Date: Tue, 9 Jun 2020 15:01:10 +0200 Subject: [PATCH] Enable oasis for ARM --- zen/tools/make_G1SSB_secret.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 1fa854e..7acb6f0 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -5,6 +5,10 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" +#### ARM / X64 NOT USED THERE +MACHINE_TYPE=`uname -m` +[ ${MACHINE_TYPE:0:3} == 'arm' ] && isARM="YES" + if [[ "$1" == "RAZ" ]]; then echo "~/.SSB_ORIGIN is made for $(whoami)" [[ -d ~/.ssb_$(whoami) ]] && mv ~/.ssb_$(whoami) ~/.SSB_ORIGIN @@ -334,16 +338,12 @@ ssb-server start & sleep 10 -##echo "Starting OASIS..." -## Don't ... -## oasis --allow-host $nodename --host $nodename & -#sleep 7 - +if [[ $isARM ]]; then + echo "Starting OASIS..." + oasis --allow-host $nodename --host $nodename & + sleep 7 +else # Intall Patchwork -#### ARM / X64 NOT USED THERE -MACHINE_TYPE=`uname -m` -[ ${MACHINE_TYPE:0:3} == 'arm' ] && isARM="YES" -if [[ ! $isARM="YES" ]]; then if [[ ! $(which ssb-patchwork) ]]; then wget https://github.com/ssbc/patchwork/releases/download/v3.18.0/ssb-patchwork_3.18.0_amd64.deb -O /tmp/patchwork.deb sudo dpkg -i /tmp/patchwork.deb