|  | @@ -85,6 +85,7 @@ function change_avahi_name {
 | 
	
		
			
			| 85 | 85 |  	sed -i "s|#host-name=.*|host-name=P$PEER_ID|g" /etc/avahi/avahi-daemon.conf
 | 
	
		
			
			| 86 | 86 |  	sed -i "s|host-name=.*|host-name=P$PEER_ID|g" /etc/avahi/avahi-daemon.conf
 | 
	
		
			
			| 87 | 87 |  	set_hostname P$PEER_ID
 | 
	
		
			
			|  | 88 | +	systemctl restart avahi-daemon
 | 
	
		
			
			| 88 | 89 |  
 | 
	
		
			
			| 89 | 90 |  	echo "New avahi name for this peer is P$PEER_ID"
 | 
	
		
			
			| 90 | 91 |  	toilet "mesh-$PEER_ID"
 | 
	
	
		
			
			|  | @@ -676,8 +677,13 @@ if [ -f $MESH_INSTALL_SETUP ]; then
 | 
	
		
			
			| 676 | 677 |  	if [ ! -f $MESH_AMNESIC ]; then
 | 
	
		
			
			| 677 | 678 |  		rm $MESH_INSTALL_SETUP
 | 
	
		
			
			| 678 | 679 |  		systemctl disable mesh-setup.service
 | 
	
		
			
			|  | 680 | +	else
 | 
	
		
			
			|  | 681 | +		# kill the MATE file manager which pops up when
 | 
	
		
			
			|  | 682 | +		# encrypted drives are mounted
 | 
	
		
			
			|  | 683 | +		pkill caja
 | 
	
		
			
			| 679 | 684 |  	fi
 | 
	
		
			
			| 680 | 685 |  
 | 
	
		
			
			|  | 686 | +
 | 
	
		
			
			| 681 | 687 |  	mesh_restart_daemons
 | 
	
		
			
			| 682 | 688 |  	if [ ! -f $MESH_INSTALL_COMPLETED ]; then
 | 
	
		
			
			| 683 | 689 |  		echo $'Mesh node setup complete' >> $INSTALL_LOG
 |