Stop avahi when exiting mesh
This commit is contained in:
parent
5f873e6f41
commit
d498247e3d
|
@ -405,6 +405,12 @@ function mesh_batman {
|
||||||
echo ' mv /usr/local/share/toxic/DHTnodes.internet /usr/local/share/toxic/DHTnodes' >> $batman_script
|
echo ' mv /usr/local/share/toxic/DHTnodes.internet /usr/local/share/toxic/DHTnodes' >> $batman_script
|
||||||
echo ' fi' >> $batman_script
|
echo ' fi' >> $batman_script
|
||||||
echo '' >> $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 ' sudo rm -f /tmp/meshtype' >> $batman_script
|
||||||
echo '' >> $batman_script
|
echo '' >> $batman_script
|
||||||
echo ' # kill processes' >> $batman_script
|
echo ' # kill processes' >> $batman_script
|
||||||
|
|
Loading…
Reference in New Issue