ignore errors in global explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								37eabffd9c
							
						
					
				
			
			
				commit
				
					
						2856684e51
					
				
			
		
					 3 changed files with 12 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
#
 | 
			
		||||
# 2010-2011 Nico Schottelius (nico-cdist at schottelius.org)
 | 
			
		||||
# 2012 Steven Armstrong (steven-cdist at armstrong.cc)
 | 
			
		||||
#
 | 
			
		||||
# This file is part of cdist.
 | 
			
		||||
#
 | 
			
		||||
| 
						 | 
				
			
			@ -19,4 +20,6 @@
 | 
			
		|||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
hostname
 | 
			
		||||
if which hostname >/dev/null 2>&1; then
 | 
			
		||||
   hostname
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,6 +29,11 @@ if which ip >/dev/null 2>&1; then
 | 
			
		|||
    exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if ! which ifconfig >/dev/null 2>&1; then
 | 
			
		||||
   # no ifconfig, nothing we could do
 | 
			
		||||
   exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
uname_s="$(uname -s)"
 | 
			
		||||
REGEXP='s/^(.*)(:[[:space:]]*flags=|Link encap).*/\1/p'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,4 +22,6 @@
 | 
			
		|||
#
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
uname -m
 | 
			
		||||
if which uname >/dev/null 2>&1; then
 | 
			
		||||
   uname -m
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue