Stop avahi when exiting mesh

This commit is contained in:
Bob Mottram 2015-09-04 20:59:11 +01:00
parent 5f873e6f41
commit d498247e3d
1 changed files with 6 additions and 0 deletions

View File

@ -405,6 +405,12 @@ function mesh_batman {
echo ' mv /usr/local/share/toxic/DHTnodes.internet /usr/local/share/toxic/DHTnodes' >> $batman_script
echo ' fi' >> $batman_script
echo '' >> $batman_script
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
echo ' systemctl stop avahi-daemon' >> $batman_script
echo ' else' >> $batman_script
echo ' service avahi-daemon stop' >> $batman_script
echo ' fi' >> $batman_script
echo '' >> $batman_script
echo ' sudo rm -f /tmp/meshtype' >> $batman_script
echo '' >> $batman_script
echo ' # kill processes' >> $batman_script