Browse Source

Save tox bootstrap ID

Bob Mottram 10 years ago
parent
commit
937dc57b36
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      src/freedombone

+ 9
- 4
src/freedombone View File

392
 
392
 
393
 TOX_PORT=33445
393
 TOX_PORT=33445
394
 TOX_REPO='git://github.com/irungentoo/toxcore.git'
394
 TOX_REPO='git://github.com/irungentoo/toxcore.git'
395
+TOX_BOOTSTRAP_ID_FILE=/var/lib/tox-bootstrapd/pubkey.txt
395
 # These are some default nodes, but you can replace them with trusted nodes
396
 # These are some default nodes, but you can replace them with trusted nodes
396
 # as you prefer. See https://wiki.tox.im/Nodes
397
 # as you prefer. See https://wiki.tox.im/Nodes
397
 TOX_NODE=
398
 TOX_NODE=
5169
   if [[ $SYSTEM_TYPE == "$VARIANT_DEVELOPER" ]]; then
5170
   if [[ $SYSTEM_TYPE == "$VARIANT_DEVELOPER" ]]; then
5170
       echo '             D E V E L O P E R   E D I T I O N' >> /etc/motd
5171
       echo '             D E V E L O P E R   E D I T I O N' >> /etc/motd
5171
   fi
5172
   fi
5172
-  if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
5173
-      echo '                   M E S H   E D I T I O N' >> /etc/motd
5174
-  fi
5175
 
5173
 
5176
   echo '' >> /etc/motd
5174
   echo '' >> /etc/motd
5177
-  echo '                  Freedom in the Cloud' >> /etc/motd
5175
+  if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
5176
+      echo '                  Freedom in the Cloud' >> /etc/motd
5177
+  else
5178
+      echo '                   Freedom in the Mesh' >> /etc/motd
5179
+  fi
5178
   echo '' >> /etc/motd
5180
   echo '' >> /etc/motd
5179
   echo 'change_login_message' >> $COMPLETION_FILE
5181
   echo 'change_login_message' >> $COMPLETION_FILE
5180
 }
5182
 }
8284
       exit 6529
8286
       exit 6529
8285
   fi
8287
   fi
8286
 
8288
 
8289
+  # save the public key for later reference
8290
+  echo "$TOX_PUBLIC_KEY" > $TOX_BOOTSTRAP_ID_FILE
8291
+  
8287
   configure_firewall_for_tox
8292
   configure_firewall_for_tox
8288
 
8293
 
8289
   if ! grep -q "Tox node" /home/$MY_USERNAME/README; then
8294
   if ! grep -q "Tox node" /home/$MY_USERNAME/README; then