ignore errors in global explorers

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2012-06-22 09:30:47 +02:00
parent 37eabffd9c
commit 2856684e51
3 changed files with 12 additions and 2 deletions

View file

@ -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 @@
#
#
if which hostname >/dev/null 2>&1; then
hostname
fi

View file

@ -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'

View file

@ -22,4 +22,6 @@
#
#
if which uname >/dev/null 2>&1; then
uname -m
fi