* about the qemu net interface name
@ 2011-11-04 2:50 Ni Qingliang
2011-11-04 9:58 ` Ni Qingliang
0 siblings, 1 reply; 3+ messages in thread
From: Ni Qingliang @ 2011-11-04 2:50 UTC (permalink / raw)
To: openembedded-core
file: scripts/runqemu-internal
line153: POSSIBLE=`$IFCONFIG -a|grep '^tap' | awk `{print $1}'`
on archlinux, I got that:
tap0:
tap1:
maybe it should be:
tap0
tap1
Is it right?
so I change it to
POSSIBLE=`$IFCONFIG -a|grep '^tap' | awk `{print $1}' | sed 's/:$//'`
--
Yi Qingliang
niqingliang@insigma.com.cn
https://niqingliang2003.wordpress.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about the qemu net interface name
2011-11-04 2:50 about the qemu net interface name Ni Qingliang
@ 2011-11-04 9:58 ` Ni Qingliang
2011-11-04 11:31 ` Phil Blundell
0 siblings, 1 reply; 3+ messages in thread
From: Ni Qingliang @ 2011-11-04 9:58 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
I have checked the version of ifconfig, it blongs to package
"net-tools".
only the latest version 1.60.20110819cvs-1 have the ":" after Interface
name. In this version, the output format of ifconfig has changed.
On Fri, 2011-11-04 at 10:50 +0800, 倪庆亮 wrote:
> file: scripts/runqemu-internal
> line153: POSSIBLE=`$IFCONFIG -a|grep '^tap' | awk `{print $1}'`
>
> on archlinux, I got that:
> tap0:
> tap1:
>
> maybe it should be:
> tap0
> tap1
>
> Is it right?
>
> so I change it to
> POSSIBLE=`$IFCONFIG -a|grep '^tap' | awk `{print $1}' | sed 's/:$//'`
>
> --
> Yi Qingliang
> niqingliang@insigma.com.cn
> https://niqingliang2003.wordpress.com
>
--
Yi Qingliang
niqingliang@insigma.com.cn
https://niqingliang2003.wordpress.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about the qemu net interface name
2011-11-04 9:58 ` Ni Qingliang
@ 2011-11-04 11:31 ` Phil Blundell
0 siblings, 0 replies; 3+ messages in thread
From: Phil Blundell @ 2011-11-04 11:31 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, 2011-11-04 at 17:58 +0800, Ni Qingliang wrote:
> I have checked the version of ifconfig, it blongs to package
> "net-tools".
>
> only the latest version 1.60.20110819cvs-1 have the ":" after Interface
> name. In this version, the output format of ifconfig has changed.
Parsing the output of ifconfig isn't a very good way to get a list of
devices (not least because ifconfig isn't guaranteed to be available).
It would be better to read /proc/net/dev directly since this file is
intended to be machine-readable.
p.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-04 11:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 2:50 about the qemu net interface name Ni Qingliang
2011-11-04 9:58 ` Ni Qingliang
2011-11-04 11:31 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox