summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-01 20:49:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-01 20:49:44 +0100
commit06625096f897235ed85f0d9a1355497f92938454 (patch)
treea5993f3d74b6f1aadca579a69bb685b4e14b0213 /scripts
parentbf9e9961ec4e7b2d10f25b550b902df62b3939b1 (diff)
downloadopenembedded-core-06625096f897235ed85f0d9a1355497f92938454.tar.gz
openembedded-core-06625096f897235ed85f0d9a1355497f92938454.tar.bz2
openembedded-core-06625096f897235ed85f0d9a1355497f92938454.tar.xz
openembedded-core-06625096f897235ed85f0d9a1355497f92938454.zip
scripts: Don't show errors from which ifconfig failing
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-gen-tapdevs2
-rwxr-xr-xscripts/runqemu-ifup2
-rwxr-xr-xscripts/runqemu-internal2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs
index 995e1d520..9f313879e 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 f9b2f035c..987a37a1a 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 883fa5b90..19f8d3de8 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