|  | @@ -432,6 +432,22 @@ function mesh_firewall {
 | 
	
		
			
			| 432 | 432 |  	$CHROOT_PREFIX systemctl enable meshfirewall
 | 
	
		
			
			| 433 | 433 |  }
 | 
	
		
			
			| 434 | 434 |  
 | 
	
		
			
			|  | 435 | +function mesh_tox_node_remove {
 | 
	
		
			
			|  | 436 | +	systemctl stop tox-bootstrapd
 | 
	
		
			
			|  | 437 | +	systemctl disable tox-bootstrapd
 | 
	
		
			
			|  | 438 | +	if [ -f /etc/systemd/system/tox-bootstrapd.service ]; then
 | 
	
		
			
			|  | 439 | +		rm /etc/systemd/system/tox-bootstrapd.service
 | 
	
		
			
			|  | 440 | +	fi
 | 
	
		
			
			|  | 441 | +	if [ -d $INSTALL_DIR/toxcore ]; then
 | 
	
		
			
			|  | 442 | +		cd $INSTALL_DIR/toxcore
 | 
	
		
			
			|  | 443 | +		make uninstall
 | 
	
		
			
			|  | 444 | +		rm -rf $INSTALL_DIR/toxcore
 | 
	
		
			
			|  | 445 | +	fi
 | 
	
		
			
			|  | 446 | +	if [ -f /etc/tox-bootstrapd.conf ]; then
 | 
	
		
			
			|  | 447 | +		rm /etc/tox-bootstrapd.conf
 | 
	
		
			
			|  | 448 | +	fi
 | 
	
		
			
			|  | 449 | +}
 | 
	
		
			
			|  | 450 | +
 | 
	
		
			
			| 435 | 451 |  function mesh_tox_node {
 | 
	
		
			
			| 436 | 452 |  	# obtain commits from the main file
 | 
	
		
			
			| 437 | 453 |  	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
 | 
	
	
		
			
			|  | @@ -1083,7 +1099,11 @@ if [[ $FN == 'batman_client' ]]; then
 | 
	
		
			
			| 1083 | 1099 |  	mesh_batman_client
 | 
	
		
			
			| 1084 | 1100 |  fi
 | 
	
		
			
			| 1085 | 1101 |  if [[ $FN == 'tox_node' ]]; then
 | 
	
		
			
			| 1086 |  | -	mesh_tox_node
 | 
	
		
			
			|  | 1102 | +	if [[ $REMOVE != 'yes' ]]; then
 | 
	
		
			
			|  | 1103 | +		mesh_tox_node
 | 
	
		
			
			|  | 1104 | +	else
 | 
	
		
			
			|  | 1105 | +		mesh_tox_node_remove
 | 
	
		
			
			|  | 1106 | +	fi
 | 
	
		
			
			| 1087 | 1107 |  fi
 | 
	
		
			
			| 1088 | 1108 |  if [[ $FN == 'tox_client' ]]; then
 | 
	
		
			
			| 1089 | 1109 |  	mesh_tox_client
 |