2022-03-02 18:37:42 +01:00
#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
################################################################################
################################################################################
#
[ [ $1 != "quiet" ] ] && echo " =============================================
MadeInZion DIPLOMATIC PASSPORT
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
A cryptographic key pair to control your P2P Digital Life.
Solar Punk garden forest terraforming game.
2022-05-02 23:10:48 +02:00
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Bienvenue 'Astronaute' " ; sleep 1
2022-03-05 02:16:41 +01:00
2022-05-02 23:10:48 +02:00
echo ""
2022-05-08 04:39:40 +02:00
2022-03-02 18:37:42 +01:00
################################################################################
MY_PATH = " `dirname \" $0 \"` " # relative
MY_PATH = " `( cd \" $MY_PATH \" && pwd )` " # absolutized and normalized
ME = " ${ 0 ##*/ } "
2022-07-07 13:16:39 +02:00
! ipfs swarm peers >/dev/null 2>& 1 && echo "Lancez 'ipfs daemon' SVP" && exit 1
2022-03-02 18:37:42 +01:00
SALT = $( ${ MY_PATH } /diceware.sh 4 | xargs)
2022-05-02 23:10:48 +02:00
# [[ $1 != "quiet" ]] && echo "-> SALT : $SALT"
2022-03-02 18:37:42 +01:00
PEPPER = $( ${ MY_PATH } /diceware.sh 4 | xargs)
2022-05-02 23:10:48 +02:00
# [[ $1 != "quiet" ]] && echo "-> PEPPER : $PEPPER"
2022-03-02 18:37:42 +01:00
2022-05-02 23:10:48 +02:00
echo "Création de votre PSEUDO, votre PLAYER, avec PASS (6 chiffres)"
[ [ $1 != "quiet" ] ] && echo "CHOISISSEZ UN PSEUDO" && read PSEUDO; PSEUDO = ${ PSEUDO ,, } && [ [ $( ls ~/.zen/game/players/$PSEUDO * 2>/dev/null) ] ] && echo "CE PSEUDO EST DEJA UN PLAYER. EXIT" && exit 1
2022-04-26 14:16:57 +02:00
# PSEUDO=${PSEUDO,,} #lowercase
2022-04-23 18:33:23 +02:00
PLAYER = ${ PSEUDO } ${ RANDOM : 0 : 2 } $( ${ MY_PATH } /diceware.sh 1 | xargs) ${ RANDOM : 0 : 2 }
2022-03-02 18:37:42 +01:00
[ [ ! $PSEUDO ] ] && PSEUDO = $PLAYER
2022-05-02 23:10:48 +02:00
[ [ $1 != "quiet" ] ] && echo; echo "Génération de vos identités Astronaute (PLAYER):" ; sleep 1; echo " $PLAYER " ; sleep 2
2022-03-02 18:37:42 +01:00
PASS = $( echo " ${ RANDOM } ${ RANDOM } ${ RANDOM } ${ RANDOM } " | tail -c-7)
2022-04-26 14:16:57 +02:00
2022-05-02 23:10:48 +02:00
############################################################
######### CLEFS IPNS PLAYER + moa_ + qo-op_
2022-04-26 14:16:57 +02:00
PLAYERNS = $( ipfs key gen $PLAYER )
PLAYERKEYFILE = $( ${ MY_PATH } /give_me_keystore_filename.py " $PLAYER " )
2022-05-02 23:10:48 +02:00
# echo "Votre espace Astronaute privé. Compteurs LOVE 'Astroport' (amis de niveau 5)"
# [[ $1 != "quiet" ]] && echo "Votre clef $PLAYER <=> $PLAYERNS ($PLAYERKEYFILE)"; sleep 2
2022-04-26 14:16:57 +02:00
MOANS = $( ipfs key gen moa_$PLAYER )
MOAKEYFILE = $( ${ MY_PATH } /give_me_keystore_filename.py " moa_ $PLAYER " )
2022-05-02 23:10:48 +02:00
# echo "Coffre personnel multimedia journalisé dans votre 'Astroport' (amis de niveau 3)"
# [[ $1 != "quiet" ]] && echo "Votre clef moa_$PLAYER <=> $MOANS ($MOAKEYFILE)"; sleep 2
2022-04-26 14:16:57 +02:00
QOOPNS = $( ipfs key gen qo-op_$PLAYER )
QOOPKEYFILE = $( ${ MY_PATH } /give_me_keystore_filename.py " qo-op_ $PLAYER " )
2022-05-02 23:10:48 +02:00
# echo "Votre journal de bord pubié dans le réseau des ambassades/passerelles 'Astroport One' (zone 'publiques' niveau 0 et 1)"
# [[ $1 != "quiet" ]] && echo "Votre clef qo-op_$PLAYER <=> $QOOPNS ($QOOPKEYFILE)"; sleep 2
2022-03-02 18:37:42 +01:00
2022-05-02 23:10:48 +02:00
[ [ $1 != "quiet" ] ] && echo " Compte Gchange et portefeuille G1.
2022-03-05 02:16:41 +01:00
Utilisez ces identifiants pour rejoindre le réseau JUNE
2022-05-02 23:10:48 +02:00
2022-03-05 02:16:41 +01:00
$SALT
$PEPPER
2022-05-02 23:10:48 +02:00
Rendez-vous sur https://gchange.fr" ; sleep 3
echo; echo "Création de votre clef 'secret.dunikey' accès aux réseaux DU(G1) + LOVE + IPFS astrXbian." ; sleep 2
echo;
2022-04-26 14:16:57 +02:00
2022-03-02 18:37:42 +01:00
G1PUB = $( python3 ${ MY_PATH } /key_create_dunikey.py " $SALT " " $PEPPER " )
2022-04-26 14:16:57 +02:00
2022-03-08 23:37:08 +01:00
if [ [ ! $G1PUB ] ] ; then
2022-03-05 02:16:41 +01:00
[ [ $1 != "quiet" ] ] && echo "Désolé. Nous n'avons pas pu générer votre clef Cesium automatiquement."
else
2022-05-02 23:10:48 +02:00
## CREATE Player personnal files storage and IPFS publish directory
mkdir -p ~/.zen/game/players/$PLAYER # Prepare PLAYER datastructure
2022-03-05 02:16:41 +01:00
2022-04-26 14:16:57 +02:00
########################################################################
2022-05-02 23:10:48 +02:00
#echo "CREATION ~/.zen/game/players/$PLAYER/ipfs.config"; sleep 1
2022-04-26 14:16:57 +02:00
########################################################################
ipfs_ID = $( python3 ~/.zen/astrXbian/zen/tools/create_ipfsnodeid_from_tmp_secret.dunikey.py)
echo $ipfs_ID > ~/.zen/game/players/$PLAYER /secret.ipfs && source ~/.zen/game/players/$PLAYER /secret.ipfs
[ [ $PrivKEY = = "" ] ] && echo "ERROR CREATING IPFS IDENTITY" && exit 1
jq -r --arg PeerID " $PeerID " '.Identity.PeerID=$PeerID' ~/.ipfs/config > ~/.zen/tmp/config.tmp
jq -r --arg PrivKEY " $PrivKEY " '.Identity.PrivKey=$PrivKEY' ~/.zen/tmp/config.tmp > ~/.zen/tmp/config.ipfs
jq '.Peering.Peers = []' ~/.zen/tmp/config.ipfs > ~/.zen/tmp/ipfs.config ## RESET .Peering.Peers FRIENDS
rm -f ~/.zen/tmp/config.tmp ~/.zen/tmp/config.ipfs
mv ~/.zen/tmp/ipfs.config ~/.zen/game/players/$PLAYER /
mv /tmp/secret.dunikey ~/.zen/game/players/$PLAYER /
2022-05-02 23:10:48 +02:00
mkdir -p ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /G1SSB # Prepare astrXbian sub-datastructure
2022-06-20 18:38:22 +02:00
mkdir -p ~/.zen/game/players/$PLAYER /ipfs_swarm
2022-05-02 23:10:48 +02:00
2022-05-09 01:41:40 +02:00
qrencode -s 6 -o ~/.zen/game/players/$PLAYER /QR.png " $G1PUB "
cp ~/.zen/game/players/$PLAYER /QR.png ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /QR.png
2022-05-02 23:10:48 +02:00
echo " $G1PUB " > ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /G1SSB/_g1.pubkey # G1SSB NOTATION (astrXbian compatible)
2022-04-26 14:16:57 +02:00
secFromDunikey = $( cat ~/.zen/game/players/$PLAYER /secret.dunikey | grep "sec" | cut -d ' ' -f2)
2022-03-05 02:16:41 +01:00
echo " $secFromDunikey " > /tmp/${ PSEUDO } .sec
openssl enc -aes-256-cbc -salt -in /tmp/${ PSEUDO } .sec -out " /tmp/enc. ${ PSEUDO } .sec " -k $PASS 2>/dev/null
PASsec = $( cat /tmp/enc.${ PSEUDO } .sec | base58) && rm -f /tmp/${ PSEUDO } .sec
2022-04-26 14:16:57 +02:00
qrencode -s 6 -o $HOME /.zen/game/players/$PLAYER /QRsec.png $PASsec
2022-03-02 18:37:42 +01:00
2022-04-26 14:16:57 +02:00
[ [ $1 != "quiet" ] ] && echo " Votre Clef publique G1 est : $G1PUB " ; sleep 1
2022-05-02 23:10:48 +02:00
# TODO ZIP &| ENCRYPT FOR SECURITY (better control to keystore access)
mkdir -p ~/.zen/game/players/$PLAYER /keystore/
cp $HOME /.ipfs/keystore/$PLAYERKEYFILE ~/.zen/game/players/$PLAYER /keystore/
cp $HOME /.ipfs/keystore/$MOAKEYFILE ~/.zen/game/players/$PLAYER /keystore/
cp $HOME /.ipfs/keystore/$QOOPKEYFILE ~/.zen/game/players/$PLAYER /keystore/
### INITALISATION WIKI dans leurs répertoires de publication IPFS
############ TODO améliorer templates, sed, ajouter index.html, etc...
MOATS = $( date -u +"%Y%m%d%H%M%S%4N" )
2022-06-07 12:41:56 +02:00
IPFSNODEID = $( cat ~/.zen/game/players/$PLAYER /ipfs.config | jq -r .Identity.PeerID) # ACTUAL USER
2022-05-02 23:10:48 +02:00
2022-06-20 18:38:22 +02:00
# PLAYER Home ~/.zen/game/players/$PLAYER/index.html (IFRAME CONTAINING MOANS & QOOPNS)
2022-05-05 04:12:07 +02:00
PLAYERNS = $( ipfs key list -l | grep -w $PLAYER | cut -d ' ' -f 1)
2022-05-05 01:25:04 +02:00
cp ${ MY_PATH } /../templates/playerhome.html ~/.zen/game/players/$PLAYER /index.html
2022-05-05 04:12:07 +02:00
sed -i " s~_PLAYER_~ ${ PLAYER } ~g " ~/.zen/game/players/$PLAYER /index.html
sed -i " s~_PSEUDO_~ ${ PSEUDO } ~g " ~/.zen/game/players/$PLAYER /index.html
# Not used (yet) TODO make jQuery Slider
2022-05-07 18:53:11 +02:00
sed -i " s~_MOANS_~ ${ MOANS } ~g " ~/.zen/game/players/$PLAYER /index.html
sed -i " s~_QOOPNS_~ ${ QOOPNS } ~g " ~/.zen/game/players/$PLAYER /index.html
2022-05-02 23:10:48 +02:00
#echo "## PUBLISHING ${PLAYER} /ipns/$PLAYERNS"
2022-05-05 04:12:07 +02:00
IPUSH = $( ipfs add -Hq ~/.zen/game/players/$PLAYER /index.html | tail -n 1)
2022-05-09 01:41:40 +02:00
echo $IPUSH > ~/.zen/game/players/$PLAYER /$PLAYER .chain
echo $MOATS > ~/.zen/game/players/$PLAYER /$PLAYER .ts
echo 1 > ~/.zen/game/players/$PLAYER /$PLAYER .n
2022-05-02 23:10:48 +02:00
ipfs name publish --key= ${ PLAYER } /ipfs/$IPUSH 2>/dev/null
2022-05-05 01:25:04 +02:00
# Moa WIKI ~/.zen/game/players/$PLAYER/moa/index.html
mkdir -p ~/.zen/game/players/$PLAYER /moa
2022-05-09 01:41:40 +02:00
cp ${ MY_PATH } /../templates/moawiki.html ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~_BIRTHDATE_~ ${ MOATS } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~_PSEUDO_~ ${ PSEUDO } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~_PLAYER_~ ${ PLAYER } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~_MOAID_~ ${ MOANS } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
2022-05-05 01:25:04 +02:00
STATION = $( ipfs key list -l | grep -w 'moa' | cut -d ' ' -f 1)
2022-05-09 01:41:40 +02:00
sed -i " s~_QOOP_~ ${ STATION } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~_MOAKEY_~moa_ ${ PLAYER } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~k2k4r8opmmyeuee0xufn6txkxlf3qva4le2jlbw6da7zynhw46egxwp2~ ${ MOANS } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i "s~ipfs.infura.io~tube.copylaradio.com~g" ~/.zen/game/players/$PLAYER /moa/index.htm
sed -i " s~_IPFSNODEID_~ ${ IPFSNODEID } ~g " ~/.zen/game/players/$PLAYER /moa/index.htm
## Add QRCode, ID Scan login page. Private p2p level 3 exploration
2022-06-06 22:33:12 +02:00
# cp ${MY_PATH}/../templates/instascan.html ~/.zen/game/players/$PLAYER/moa/index.html
2022-05-09 01:41:40 +02:00
2022-05-05 01:25:04 +02:00
#echo "## PUBLISHING moa_${PLAYER} /ipns/$MOANS"
2022-05-09 01:41:40 +02:00
IPUSH = $( ipfs add -wHq ~/.zen/game/players/$PLAYER /moa/* | tail -n 1)
echo $IPUSH > ~/.zen/game/players/$PLAYER /moa/$PLAYER .moa.chain
echo $MOATS > ~/.zen/game/players/$PLAYER /moa/$PLAYER .moa.ts
echo 1 > ~/.zen/game/players/$PLAYER /moa/$PLAYER .moa.n
2022-05-05 01:25:04 +02:00
ipfs name publish --key= moa_${ PLAYER } /ipfs/$IPUSH 2>/dev/null
2022-05-07 18:53:11 +02:00
# qo-op WIKI ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/index.html (TODO ENHANCE TW TEMPLATE WITH EXTRA PARMETERS, EXTRA TIDDLERS)
2022-05-05 01:25:04 +02:00
cp ${ MY_PATH } /../templates/qoopwiki.html ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-03 12:20:15 +02:00
sed -i " s~_BIRTHDATE_~ ${ MOATS } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-05 04:12:07 +02:00
sed -i " s~_PSEUDO_~ ${ PSEUDO } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
sed -i " s~_PLAYER_~ ${ PLAYER } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-07 12:18:41 +02:00
sed -i " s~_MOANS_~ ${ MOANS } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
sed -i " s~_QOOPNS_~ ${ QOOPNS } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-05 01:25:04 +02:00
STATION = $( ipfs key list -l | grep -w 'qo-op' | cut -d ' ' -f 1)
2022-05-03 12:20:15 +02:00
sed -i " s~_QOOP_~ ${ STATION } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-05 01:25:04 +02:00
sed -i " s~_MOAKEY_~qo-op_ ${ PLAYER } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
sed -i " s~k2k4r8opmmyeuee0xufn6txkxlf3qva4le2jlbw6da7zynhw46egxwp2~ ${ QOOPNS } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-03 12:20:15 +02:00
sed -i "s~ipfs.infura.io~tube.copylaradio.com~g" ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
sed -i " s~_IPFSNODEID_~ ${ IPFSNODEID } ~g " ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html
2022-05-02 23:10:48 +02:00
#echo "## PUBLISHING qo-op_${PLAYER} /ipns/$QOOPNS"
2022-05-05 04:12:07 +02:00
IPUSH = $( ipfs add -Hq ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /index.html | tail -n 1)
2022-05-09 01:41:40 +02:00
echo $IPUSH > ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /$PLAYER .qo-op.chain
echo $MOATS > ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /$PLAYER .qo-op.ts
echo 1 > ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /$PLAYER .qo-op.n
2022-05-02 23:10:48 +02:00
ipfs name publish --key= qo-op_${ PLAYER } /ipfs/$IPUSH 2>/dev/null
2022-05-07 18:53:11 +02:00
## MEMORISE PLAYER
2022-05-02 23:10:48 +02:00
echo " $PSEUDO " > ~/.zen/game/players/$PLAYER /.pseudo
2022-05-07 18:53:11 +02:00
echo " $G1PUB " > ~/.zen/game/players/$PLAYER /.g1pub
echo " $IPFSNODEID " > ~/.zen/game/players/$PLAYER /.ipfsnodeid
2022-05-02 23:10:48 +02:00
echo " $PLAYER " > ~/.zen/game/players/$PLAYER /.player
2022-05-07 18:53:11 +02:00
# astrXbian compatible IPFS sub structure =>$XZUID
cp ~/.zen/game/players/$PLAYER /.player ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /_xbian.zuid
2022-06-22 18:32:49 +02:00
cp ~/.zen/game/players/$PLAYER /.player ~/.zen/game/players/$PLAYER /ipfs/.$PeerID /
2022-05-02 23:10:48 +02:00
2022-05-05 04:12:07 +02:00
# Record IPNS address for CHANNEL.populate
echo " $PLAYERNS " > ~/.zen/game/players/$PLAYER /.playerns
echo " $MOANS " > ~/.zen/game/players/$PLAYER /.moans
echo " $QOOPNS " > ~/.zen/game/players/$PLAYER /.qoopns
2022-05-02 23:10:48 +02:00
echo " $SALT " > ~/.zen/game/players/$PLAYER /secret.june
echo " $PEPPER " >> ~/.zen/game/players/$PLAYER /secret.june
2022-03-05 02:16:41 +01:00
fi
2022-03-02 18:37:42 +01:00
2022-06-06 18:26:35 +02:00
qrencode -s 6 -o " $HOME /.zen/game/players/ $PLAYER /QR.PLAYERNS.png " " http://astroport:8080/ipns/ $PLAYERNS "
qrencode -s 6 -o " $HOME /.zen/game/players/ $PLAYER /QR.MOANS.png " " http://astroport:8080/ipns/ $MOANS "
qrencode -s 6 -o " $HOME /.zen/game/players/ $PLAYER /QR.QOOPNS.png " " http://astroport:8080/ipns/ $QOOPNS "
2022-03-02 18:37:42 +01:00
2022-05-05 01:25:04 +02:00
echo; echo "Création de vos QR codes IPNS, clefs de votre réseau IPFS." ; sleep 1
2022-03-02 18:37:42 +01:00
2022-05-02 23:10:48 +02:00
[ [ $1 != "quiet" ] ] && echo; echo " *** Espace Astronaute Activé : ~/.zen/game/players/ $PLAYER / " ; sleep 1
2022-05-07 12:18:41 +02:00
[ [ $1 != "quiet" ] ] && echo; echo " *** Votre Home : $PLAYER " ; echo " http://127.0.0.1:8080/ipns/ $PLAYERNS " ; sleep 2
2022-06-06 18:26:35 +02:00
[ [ $1 != "quiet" ] ] && echo; echo " *** Votre Journal Astronaute (niveau 3) : moa_ $PLAYER " ; echo " http://astroport:8080/ipns/ $( ipfs key list -l | grep -w moa_$PLAYER | cut -d ' ' -f 1) " ; sleep 2
[ [ $1 != "quiet" ] ] && echo; echo " *** Votre Journal Passerelle (niveau 0/1) : qo-op_ $PLAYER " ; echo " http://astroport:8080/ipns/ $( ipfs key list -l | grep -w qo-op_$PLAYER | cut -d ' ' -f 1) " ; sleep 2
2022-03-02 18:37:42 +01:00
# PASS CRYPTING KEY
2022-04-26 14:16:57 +02:00
openssl enc -aes-256-cbc -salt -in " $HOME /.zen/game/players/ $PLAYER /secret.june " -out " $HOME /.zen/game/players/ $PLAYER /enc.secret.june " -k $PASS 2>/dev/null
openssl enc -aes-256-cbc -salt -in " $HOME /.zen/game/players/ $PLAYER /secret.dunikey " -out " $HOME /.zen/game/players/ $PLAYER /enc.secret.dunikey " -k $PASS 2>/dev/null
openssl enc -aes-256-cbc -salt -in " $HOME /.zen/game/players/ $PLAYER / $KEYFILE -out " " $HOME /.zen/game/players/ $PLAYER /enc. $KEYFILE " -k $PASS 2>/dev/null
2022-03-05 02:16:41 +01:00
## TODO MORE SECURE ?! USE opengpg, natools, etc ...
2022-04-26 14:16:57 +02:00
# ${MY_PATH}/natools.py encrypt -p $G1PUB -i ~/.zen/game/players/$PLAYER/secret.dunikey -o "$HOME/.zen/game/players/$PLAYER/secret.dunikey.oasis"
2022-03-02 18:37:42 +01:00
2022-05-03 12:20:15 +02:00
[ [ $1 != "quiet" ] ] && echo; echo "Sécurisation de vos clefs par chiffrage SSL... " ; sleep 1
2022-03-02 18:37:42 +01:00
#################################################
2022-05-07 18:53:11 +02:00
# !! TODO !! # DEMO MODE. REMOVE FOR PRODUCTION
2022-04-26 14:16:57 +02:00
echo " $PASS " > ~/.zen/game/players/$PLAYER /.pass
2022-05-07 18:53:11 +02:00
# ~/.zen/game/players/$PLAYER/secret.june SECURITY TODO
# Astronaut QRCode + PASS = LOGIN (=> DECRYPTING CRYPTO IPFS INDEX)
#####################################################
2022-03-02 18:37:42 +01:00
2022-05-07 18:53:11 +02:00
## DISCONNECT AND CONNECT CURRENT PLAYER
2022-03-02 18:37:42 +01:00
rm -f ~/.zen/game/players/.current
2022-04-26 14:16:57 +02:00
ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current
2022-03-02 18:37:42 +01:00
2022-05-07 18:53:11 +02:00
## INIT FRIENDSHIP CAPTAIN/ASTRONAUTS
2022-06-23 16:30:56 +02:00
## ${MY_PATH}/FRIENDS.init.sh
## NO. GCHANGE+ IS THE MAIN INTERFACE, astrXbian manage
2022-05-02 23:10:48 +02:00
[ [ $1 != "quiet" ] ] && echo " Bienvenue 'Astronaute' $PSEUDO ( $PLAYER ) "
2022-05-03 12:20:15 +02:00
[ [ $1 != "quiet" ] ] && echo " Souvenez-vous bien de votre PASS : $PASS " ; sleep 2
2022-04-23 18:33:23 +02:00
2022-05-02 23:10:48 +02:00
echo $PSEUDO > ~/.zen/tmp/PSEUDO ## Return data to start.sh
echo " cool $( ${ MY_PATH } /face.sh cool) "
2022-03-02 18:37:42 +01:00
exit 0