Ensure removal of mesh flag

This commit is contained in:
Bob Mottram 2015-09-03 18:56:36 +01:00
parent a85ecb29af
commit 61331afaae
1 changed files with 2 additions and 2 deletions

View File

@ -405,8 +405,6 @@ 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 ' rm -f /tmp/meshtype' >> $batman_script
echo '' >> $batman_script
echo ' # kill processes' >> $batman_script echo ' # kill processes' >> $batman_script
echo ' zeronet_proc=$(ps aux | grep zeronet | grep -v grep | awk -F " " "{print $2}" | head -n1)' >> $batman_script echo ' zeronet_proc=$(ps aux | grep zeronet | grep -v grep | awk -F " " "{print $2}" | head -n1)' >> $batman_script
echo ' if [ "$zeronet_proc" ]; then' >> $batman_script echo ' if [ "$zeronet_proc" ]; then' >> $batman_script
@ -416,6 +414,8 @@ function mesh_batman {
echo ' if [ "$tracker_proc" ]; then' >> $batman_script echo ' if [ "$tracker_proc" ]; then' >> $batman_script
echo ' kill -9 $tracker_proc 2> /dev/null' >> $batman_script echo ' kill -9 $tracker_proc 2> /dev/null' >> $batman_script
echo ' fi' >> $batman_script echo ' fi' >> $batman_script
echo '' >> $batman_script
echo ' sudo rm -f /tmp/meshtype' >> $batman_script
echo '}' >> $batman_script echo '}' >> $batman_script
echo '' >> $batman_script echo '' >> $batman_script
echo 'if ! grep -q "$IFACE" /proc/net/dev; then' >> $batman_script echo 'if ! grep -q "$IFACE" /proc/net/dev; then' >> $batman_script