From 3710557c629d25ad91d8efe378b91493c64c958a Mon Sep 17 00:00:00 2001 From: Daniel Heule Date: Tue, 29 Apr 2014 12:57:46 +0200 Subject: [PATCH] bugfix the list of interfaces --- cdist/conf/explorer/interfaces | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist/conf/explorer/interfaces b/cdist/conf/explorer/interfaces index 6804f2db..c1f2a57a 100755 --- a/cdist/conf/explorer/interfaces +++ b/cdist/conf/explorer/interfaces @@ -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