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
commit 2856684e51
3 changed files with 12 additions and 2 deletions

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'