瀏覽代碼

scripts: Don't show errors from which ifconfig failing

(From OE-Core rev: 06625096f897235ed85f0d9a1355497f92938454)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie 14 年之前
父節點
當前提交
c0df2ab7eb
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      scripts/runqemu-gen-tapdevs
  2. 1 1
      scripts/runqemu-ifup
  3. 1 1
      scripts/runqemu-internal

+ 1 - 1
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

+ 1 - 1
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

+ 1 - 1
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