diff --git a/src/freedombone-meshweb b/src/freedombone-meshweb index 43af046e..1b5bdecd 100755 --- a/src/freedombone-meshweb +++ b/src/freedombone-meshweb @@ -281,7 +281,11 @@ fi ZERONET_INDEX=/home/$MY_USERNAME/mesh.html -sleep 5 +cp /etc/crontab /tmp/crontab +if ! grep -q "zeronetavahi" /tmp/crontab; then + echo "* * * * * $MY_USERNAME zeronetavahi > /dev/null" >> /tmp/crontab +fi +sudo cp /tmp/crontab /etc/crontab zeronetavahi existing_zeronet=$(ps aux | grep zeronet | wc -l)