Implement additional dependency check
This commit is contained in:
		
							parent
							
								
									2683a1655a
								
							
						
					
					
						commit
						1ce2865564
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -302,6 +302,9 @@ class ConnectionController:
 | 
				
			||||||
    @staticmethod
 | 
					    @staticmethod
 | 
				
			||||||
    def system_uses_wireguard_interface():
 | 
					    def system_uses_wireguard_interface():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if subprocess.getstatusoutput('ip --help')[0] == 127:
 | 
				
			||||||
 | 
					            raise OSError('The iproute2 utility package does not appear to be installed.')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        process = subprocess.Popen(('ip', 'route', 'get', '192.0.2.1'), stdout=subprocess.PIPE)
 | 
					        process = subprocess.Popen(('ip', 'route', 'get', '192.0.2.1'), stdout=subprocess.PIPE)
 | 
				
			||||||
        process_output = str(process.stdout.read())
 | 
					        process_output = str(process.stdout.read())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue