From: Richard Purdie Date: Thu, 1 Sep 2011 19:49:44 +0000 (+0100) Subject: scripts: Don't show errors from which ifconfig failing X-Git-Tag: 2011-1~196 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=06625096f897235ed85f0d9a1355497f92938454;p=openembedded-core.git scripts: Don't show errors from which ifconfig failing Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs index 995e1d5204..9f313879e6 100755 --- a/scripts/runqemu-gen-tapdevs +++ b/scripts/runqemu-gen-tapdevs @@ -57,7 +57,7 @@ if [ ! -x "$RUNQEMU_IFUP" ]; then exit 1 fi -IFCONFIG=`which ifconfig` +IFCONFIG=`which ifconfig 2> /dev/null` if [ -z "$IFCONFIG" ]; then # Is it ever anywhere else? IFCONFIG=/sbin/ifconfig diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index f9b2f035cd..987a37a1a7 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup @@ -64,7 +64,7 @@ if [ $STATUS -ne 0 ]; then exit 1 fi -IFCONFIG=`which ifconfig` +IFCONFIG=`which ifconfig 2> /dev/null` if [ "x$IFCONFIG" = "x" ]; then # better than nothing... IFCONFIG=/sbin/ifconfig diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 883fa5b902..19f8d3de8e 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -133,7 +133,7 @@ if [ ! -d "$LOCKDIR" ]; then chmod 777 $LOCKDIR fi -IFCONFIG=`which ifconfig` +IFCONFIG=`which ifconfig 2> /dev/null` if [ -z "$IFCONFIG" ]; then IFCONFIG=/sbin/ifconfig fi