From 52e7ddb7bd706996b65d9d37993849fa39ff8bf9 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 11 May 2020 00:57:26 +0200 Subject: [PATCH] init g1sms --- g1sms/init.sh | 7 +++---- zen/ssb_IPFS_swarm.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/g1sms/init.sh b/g1sms/init.sh index 5771484..5b57f79 100755 --- a/g1sms/init.sh +++ b/g1sms/init.sh @@ -7,13 +7,12 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized -[[ ! $($which bc) ]] && sudo apt-get install bc -y - +[[ ! $($which bc) ]] && sudo apt-get install bc -y ## TODO: migration need TO REMOVE +[[ ! -f /tmp/g1sms.log ]] && echo "ASTROPORT G1SMS ACTIVITY" > /tmp/g1sms.log && chmod 777 /tmp/g1sms.log function log () { - [[ "$DOLOG" == "YES" ]] && echo "$PHONE:$1" >> /tmp/astroport.log; + [[ "$DOLOG" == "YES" ]] && echo "$PHONE:$1" >> /tmp/g1sms.log; } - ################################################################################################################################### fn_exists() { # appended double quote is an ugly trick to make sure we do get a string -- if $1 is not a known command, type does not output anything diff --git a/zen/ssb_IPFS_swarm.sh b/zen/ssb_IPFS_swarm.sh index 3bec165..149bf69 100755 --- a/zen/ssb_IPFS_swarm.sh +++ b/zen/ssb_IPFS_swarm.sh @@ -20,6 +20,15 @@ ME="${0##*/}" ## TODO: REMOVE DUPLICATES ## TODO: MODE : COOL, STRAIGHT, ARMORED +######################################################################## +## CONNECT GLOBAL "ipfs.io" ## DANGEROUS only for short time... +######################################################################## +# ADD ipfs.io public bootstrap into your swarm peers +# RUN: cat ~/.zen/astroport/ipfs.swarm.ipfs.io | ipfs swarm connect +# SOON ipfs swarm peers will GROW!!! YOU ARE VSIBLE !!! +# RUN: sudo systemctl restart ipfs # GOES BACK TO SWARM0 +######################################################################## + ######################################################################## # ENVIRONEMENT DETECTION + IPFS ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_info ########################################################################