| 
				
			 | 
			
			
				@@ -463,12 +463,16 @@ function configure_toxcore { 
			 | 
		
	
		
			
			| 
				463
			 | 
			
				463
			 | 
			
			
				 		TOXIC_FILE=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}') 
			 | 
		
	
		
			
			| 
				464
			 | 
			
				464
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				465
			 | 
			
				465
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				466
			 | 
			
			
				+	echo $'Enabling toxcore daemon' >> $INSTALL_LOG 
			 | 
		
	
		
			
			| 
				
			 | 
			
				467
			 | 
			
			
				+	systemctl enable tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				466
			 | 
			
				468
			 | 
			
			
				 	echo $'Regenerating Tox bootstrap node keys' >> $INSTALL_LOG 
			 | 
		
	
		
			
			| 
				467
			 | 
			
				469
			 | 
			
			
				 	systemctl stop tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				468
			 | 
			
				470
			 | 
			
			
				 	if [ -f /var/lib/tox-bootstrapd/keys ]; then 
			 | 
		
	
		
			
			| 
				469
			 | 
			
				471
			 | 
			
			
				 		rm /var/lib/tox-bootstrapd/keys 
			 | 
		
	
		
			
			| 
				470
			 | 
			
				472
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				471
			 | 
			
				473
			 | 
			
			
				 	systemctl start tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				474
			 | 
			
			
				+	# sleep for a while so that the tox keys can be generated 
			 | 
		
	
		
			
			| 
				
			 | 
			
				475
			 | 
			
			
				+	sleep 30 
			 | 
		
	
		
			
			| 
				472
			 | 
			
				476
			 | 
			
			
				 	TOX_BOOTSTRAP_ID_FILE=/var/lib/tox-bootstrapd/pubkey.txt 
			 | 
		
	
		
			
			| 
				473
			 | 
			
				477
			 | 
			
			
				 	TOX_PUBLIC_KEY=$(cat /var/log/syslog | grep tox | grep "Public Key" | awk -F ' ' '{print $8}' | tail -1) 
			 | 
		
	
		
			
			| 
				474
			 | 
			
				478
			 | 
			
			
				 	if [ ${#TOX_PUBLIC_KEY} -lt 30 ]; then 
			 |