forked from ungleich-public/cdist
		
	Merge pull request #334 from dheule/bugfix__explorer_interfaces
bugfix the list of interfaces
This commit is contained in:
		
				commit
				
					
						1bfa281cec
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -24,12 +24,12 @@
 | 
			
		|||
#
 | 
			
		||||
 | 
			
		||||
# Use ip, if available
 | 
			
		||||
if command -v ip; then
 | 
			
		||||
if command -v ip >/dev/null; then
 | 
			
		||||
    ip -o link show | sed -n 's/^[0-9]\+: \(.\+\): <.*/\1/p'
 | 
			
		||||
    exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if ! command -v ifconfig; then
 | 
			
		||||
if ! command -v ifconfig >/dev/null; then
 | 
			
		||||
   # no ifconfig, nothing we could do
 | 
			
		||||
   exit 0
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue