From 116d6330967a696702e7c4c603c72c12bb8bd2d3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Sep 2016 13:33:25 +0100 Subject: [PATCH] Change name of the mesh sync script --- Makefile | 2 +- src/freedombone-app-tox | 2 +- src/freedombone-app-zeronet | 2 +- src/{zeronetavahi => meshavahi} | 11 ++++------- 4 files changed, 7 insertions(+), 10 deletions(-) rename src/{zeronetavahi => meshavahi} (94%) diff --git a/Makefile b/Makefile index ff274b51..083ca626 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ uninstall: rm -rf ${PREFIX}/share/${APP} rm -rf /usr/share/${APP} rm -f ${PREFIX}/bin/${APP}* - rm -f ${PREFIX}/bin/zeronetavahi + rm -f ${PREFIX}/bin/meshavahi rm -f ${PREFIX}/bin/backup rm -f ${PREFIX}/bin/backup2friends rm -f ${PREFIX}/bin/restore diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index d9085844..341945bf 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -565,7 +565,7 @@ EOF MESH_SYNC_COMMAND=$rootdir/usr/bin/mesh-sync echo '#!/bin/bash' > $MESH_SYNC_COMMAND echo '/usr/local/bin/toxavahi 2> /dev/null' >> $MESH_SYNC_COMMAND - echo '/usr/local/bin/zeronetavahi 2> /dev/null' >> $MESH_SYNC_COMMAND + echo '/usr/local/bin/meshavahi 2> /dev/null' >> $MESH_SYNC_COMMAND chmod +x $MESH_SYNC_COMMAND if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then diff --git a/src/freedombone-app-zeronet b/src/freedombone-app-zeronet index fecfd1f3..339b0885 100755 --- a/src/freedombone-app-zeronet +++ b/src/freedombone-app-zeronet @@ -558,7 +558,7 @@ function mesh_zeronet { MESH_SYNC_COMMAND=$rootdir/usr/bin/mesh-sync echo '#!/bin/bash' > $MESH_SYNC_COMMAND echo '/usr/local/bin/toxavahi 2> /dev/null' >> $MESH_SYNC_COMMAND - echo '/usr/local/bin/zeronetavahi 2> /dev/null' >> $MESH_SYNC_COMMAND + echo '/usr/local/bin/meshavahi 2> /dev/null' >> $MESH_SYNC_COMMAND chmod +x $MESH_SYNC_COMMAND if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then diff --git a/src/zeronetavahi b/src/meshavahi similarity index 94% rename from src/zeronetavahi rename to src/meshavahi index 3ad69753..eb809a61 100755 --- a/src/zeronetavahi +++ b/src/meshavahi @@ -8,10 +8,7 @@ # # Freedom in the Cloud # -# A script for using avahi to discover peers and update zeronet trackers - -# Blogs and fora are discovered on the network and then published -# to an index file which can be opened in a browser +# A script for using avahi to discover peers and update tox/ipfs # License # ======= @@ -33,7 +30,7 @@ PROJECT_NAME='freedombone' -export TEXTDOMAIN=$PROJECT_NAME-zeronetavahi +export TEXTDOMAIN=$PROJECT_NAME-meshavahi export TEXTDOMAINDIR="/usr/share/locale" MESH_USERNAME='fbone' @@ -46,8 +43,8 @@ IPFS_USERS_FILE=/home/$MY_USERNAME/.ipfs-users IPFS_PUBLIC=/home/$MY_USERNAME/.ipfs-public # contains the output of the avahi command -TEMPFILE_BASE=$(mktemp /tmp/zeronetavahibase.XXXXXX) -TEMPFILE=$(mktemp /tmp/zeronetavahi.XXXXXX) +TEMPFILE_BASE=$(mktemp /tmp/meshavahibase.XXXXXX) +TEMPFILE=$(mktemp /tmp/meshavahi.XXXXXX) # List of tox users previously seen PREV_TOX_USERS_FILE=/root/.prev_tox_users