From 789e0ebded3f631aac04fc0a7db86bccb3abd8e1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 24 Aug 2015 19:42:51 +0100 Subject: [PATCH] tox --- src/freedombone | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/freedombone b/src/freedombone index 71a262f3..8f01efcb 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8154,7 +8154,7 @@ function tox_avahi { echo 'tox_avahi: avahi is not installed' exit 87359 fi - + # install a command to obtain the Tox ID cd $INSTALL_DIR git clone https://github.com/bashrc/toxid @@ -8166,7 +8166,7 @@ function tox_avahi { if [ ! "$?" = "0" ]; then exit 58432 fi - make install + make install # script to publish the tox user if [ ! -f /usr/bin/publish-to-avahi ]; then @@ -8186,11 +8186,11 @@ function tox_avahi { echo "echo '' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi echo "echo '' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi echo "echo ' %h $TOX_ID' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi - echo "echo ' ' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi - echo "echo ' _tox._tcp' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi - echo "echo \" $TOX_PORT\" >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi - echo "echo ' ' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi - echo "echo '' >> /etc/avahi/services/ssh.service" >> /usr/bin/publish-to-avahi + echo "echo ' ' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi + echo "echo ' _tox._tcp' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi + echo "echo \" $TOX_PORT\" >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi + echo "echo ' ' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi + echo "echo '' >> /etc/avahi/services/tox.service" >> /usr/bin/publish-to-avahi echo '' >> /usr/bin/publish-to-avahi echo 'exit 0' >> /usr/bin/publish-to-avahi @@ -8200,8 +8200,8 @@ function tox_avahi { if ! grep -Fxq "publish-to-avahi" /etc/crontab; then echo '*/1 * * * * root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab fi - - echo 'tox_avahi' >> $COMPLETION_FILE + + echo 'tox_avahi' >> $COMPLETION_FILE } function install_tox_node {