|  | @@ -4980,17 +4980,21 @@ function install_onerng {
 | 
	
		
			
			| 4980 | 4980 |    # install the package
 | 
	
		
			
			| 4981 | 4981 |    dpkg -i $ONERNG_PACKAGE
 | 
	
		
			
			| 4982 | 4982 |  
 | 
	
		
			
			| 4983 |  | -  # check rng-tools configuration
 | 
	
		
			
			| 4984 |  | -  if ! grep -q "/dev/$ONERNG_DEVICE" /etc/default/rng-tools; then
 | 
	
		
			
			| 4985 |  | -      echo "HRNGDEVICE=/dev/$ONERNG_DEVICE" >> /etc/default/rng-tools
 | 
	
		
			
			| 4986 |  | -      systemctl restart rng-tools
 | 
	
		
			
			| 4987 |  | -  fi
 | 
	
		
			
			| 4988 |  | -
 | 
	
		
			
			| 4989 | 4983 |    # Check that the install worked
 | 
	
		
			
			| 4990 | 4984 |    if [ ! -f /etc/onerng.conf ]; then
 | 
	
		
			
			| 4991 | 4985 |        echo 'OneRNG configuration file not found. The package may not have installed successfully.'
 | 
	
		
			
			| 4992 | 4986 |        exit 42904
 | 
	
		
			
			| 4993 | 4987 |    fi
 | 
	
		
			
			|  | 4988 | +
 | 
	
		
			
			|  | 4989 | +  dialog --title "OneRNG Device" \
 | 
	
		
			
			|  | 4990 | +         --msgbox "Please plug in the OneRNG device" 6 40
 | 
	
		
			
			|  | 4991 | +
 | 
	
		
			
			|  | 4992 | +  # check rng-tools configuration
 | 
	
		
			
			|  | 4993 | +  if ! grep -q "/dev/$ONERNG_DEVICE" /etc/default/rng-tools; then
 | 
	
		
			
			|  | 4994 | +      echo "HRNGDEVICE=/dev/$ONERNG_DEVICE" >> /etc/default/rng-tools
 | 
	
		
			
			|  | 4995 | +  fi
 | 
	
		
			
			|  | 4996 | +
 | 
	
		
			
			|  | 4997 | +  systemctl restart rng-tools
 | 
	
		
			
			| 4994 | 4998 |  }
 | 
	
		
			
			| 4995 | 4999 |  
 | 
	
		
			
			| 4996 | 5000 |  function random_number_generator {
 |