]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts: Don't show errors from which ifconfig failing
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Sep 2011 19:49:44 +0000 (20:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Sep 2011 19:49:44 +0000 (20:49 +0100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu-gen-tapdevs
scripts/runqemu-ifup
scripts/runqemu-internal

index 995e1d52048d6ff5efe048c0186b92ecc7b30363..9f313879e6b64e02e34170cbf1a9c506a4bebdf8 100755 (executable)
@@ -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
index f9b2f035cd8df79eb7fcbbcefc2abde13a09da6e..987a37a1a7ae12f12e1fba47c676306a8d2859ad 100755 (executable)
@@ -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
index 883fa5b902744bd99f3f8cc5cf2095dbcd56ce65..19f8d3de8ef9d73b175ef65617d9be56fbc43d9b 100755 (executable)
@@ -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