Don't include grep
This commit is contained in:
parent
8dc2c345e1
commit
63745b2616
|
@ -406,10 +406,14 @@ function mesh_batman {
|
|||
echo ' fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' # kill processes' >> $batman_script
|
||||
echo ' zeronet_proc=$(ps aux | grep zeronet | awk -F " " "{print $2}" | head -n1)' >> $batman_script
|
||||
echo ' kill -9 $zeronet_proc > /dev/null' >> $batman_script
|
||||
echo ' tracker_proc=$(ps aux | grep bttrack | awk -F " " "{print $2}" | head -n1)' >> $batman_script
|
||||
echo ' kill -9 $tracker_proc > /dev/null' >> $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 ' kill -9 $zeronet_proc 2> /dev/null' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo ' tracker_proc=$(ps aux | grep bttrack | grep -v grep | awk -F " " "{print $2}" | head -n1)' >> $batman_script
|
||||
echo ' if [ $tracker_proc ]; then' >> $batman_script
|
||||
echo ' kill -9 $tracker_proc 2> /dev/null' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' ' >> $batman_script
|
||||
echo ' rm -f /tmp/meshtype' >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue