From f37f57e2fea7081a8fa710d3d099985224d9df65 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 26 Aug 2015 21:17:26 +0100 Subject: [PATCH] A workaround for toxic client buggyness --- src/freedombone-mesh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/freedombone-mesh b/src/freedombone-mesh index eeca61cd..c497f278 100755 --- a/src/freedombone-mesh +++ b/src/freedombone-mesh @@ -147,15 +147,17 @@ if [ ! -f $MUMBLE_PATH ]; then fi fi lstox -f dht > /tmp/dht - sudo cp /tmp/dht $DHTNODES + sudo cp /tmp/dht $DHTNODES PEER_TOX_ID=$(lstox | grep $AVAHI_DOMAIN | head -n 1 | awk -F ' ' '{print $2}') if [ ${#PEER_TOX_ID} -gt 30 ]; then echo "/nick $USER /add $PEER_TOX_ID +/exit " | $TOXIC_PATH -d + $TOXIC_PATH -d exit 0 else - echo $PEER_TOX_ID + echo $PEER_TOX_ID echo "Tox ID for $AVAHI_DOMAIN was not found" exit 6 fi @@ -208,12 +210,14 @@ else fi fi lstox -f dht > /tmp/dht - sudo cp /tmp/dht $DHTNODES + sudo cp /tmp/dht $DHTNODES PEER_TOX_ID=$(lstox | grep $AVAHI_DOMAIN | head -n 1 | awk -F ' ' '{print $2}') if [ ${#PEER_TOX_ID} -gt 30 ]; then echo "/nick $USER /add $PEER_TOX_ID +/exit " | $TOXIC_PATH -d + $TOXIC_PATH -d else echo "Tox ID for $AVAHI_DOMAIN was not found" exit 6