ignore errors in global explorers

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/2.0
Steven Armstrong 13 years ago
parent 37eabffd9c
commit 2856684e51
  1. 5
      conf/explorer/hostname
  2. 5
      conf/explorer/interfaces
  3. 4
      conf/explorer/machine

@ -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…
Cancel
Save