Avoid writing things to disk

This commit is contained in:
Bob Mottram 2016-08-09 13:18:36 +01:00
parent a279494766
commit b09014c35a
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 6 additions and 5 deletions

View File

@ -589,9 +589,9 @@ EOF
echo '#!/bin/bash' > $MESH_SYNC_COMMAND
echo 'while true' >> $MESH_SYNC_COMMAND
echo 'do' >> $MESH_SYNC_COMMAND
echo ' /usr/bin/timeout 20 /usr/local/bin/toxavahi' >> $MESH_SYNC_COMMAND
echo ' /usr/local/bin/toxavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo ' sleep 10' >> $MESH_SYNC_COMMAND
echo ' /usr/bin/timeout 20 /usr/local/bin/zeronetavahi' >> $MESH_SYNC_COMMAND
echo ' /usr/local/bin/zeronetavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo ' sleep 10' >> $MESH_SYNC_COMMAND
echo 'done' >> $MESH_SYNC_COMMAND
chmod +x $MESH_SYNC_COMMAND

View File

@ -565,9 +565,10 @@ function mesh_zeronet {
echo '#!/bin/bash' > $MESH_SYNC_COMMAND
echo 'while true' >> $MESH_SYNC_COMMAND
echo 'do' >> $MESH_SYNC_COMMAND
echo ' /usr/bin/timeout 20 /usr/local/bin/toxavahi' >> $MESH_SYNC_COMMAND
echo ' /usr/bin/timeout 20 /usr/local/bin/zeronetavahi' >> $MESH_SYNC_COMMAND
echo ' sleep 5' >> $MESH_SYNC_COMMAND
echo ' /usr/local/bin/toxavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo ' sleep 10' >> $MESH_SYNC_COMMAND
echo ' /usr/local/bin/zeronetavahi 2> /dev/null' >> $MESH_SYNC_COMMAND
echo ' sleep 10' >> $MESH_SYNC_COMMAND
echo 'done' >> $MESH_SYNC_COMMAND
chmod +x $MESH_SYNC_COMMAND