* [Bridge] Simple list of tun devices?
@ 2005-11-07 20:16 Michael Bueker
2005-11-07 21:17 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Michael Bueker @ 2005-11-07 20:16 UTC (permalink / raw)
To: bridge
Hello,
I'm using acustom script to bring up and take down my bridge. For that,
I need to know the bridge devices that are currently active for use in a
bash for-loop.
I reckon that I could grep and sed the output of ifconfig or brctl show,
but that seems very kludgy to me. The tun* devices do not appear in /dev
and neither did a grep in all of /proc return any useful result.
So, is there a simple way to tell which tun devices are up at any moment?
Cheers,
~Mik
--
Was passiert, wenn man einem Therapiepatienten ein asymmetrisches
Mandala zum Ausmalen gibt? Wird er dann erst recht wahnsinnig?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bridge] Simple list of tun devices?
2005-11-07 20:16 [Bridge] Simple list of tun devices? Michael Bueker
@ 2005-11-07 21:17 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2005-11-07 21:17 UTC (permalink / raw)
To: Michael Bueker; +Cc: bridge
On Mon, 07 Nov 2005 21:16:28 +0100
Michael Bueker <m.bueker@berlin.de> wrote:
> Hello,
>
> I'm using acustom script to bring up and take down my bridge. For that,
> I need to know the bridge devices that are currently active for use in a
> bash for-loop.
> I reckon that I could grep and sed the output of ifconfig or brctl show,
> but that seems very kludgy to me. The tun* devices do not appear in /dev
> and neither did a grep in all of /proc return any useful result.
>
> So, is there a simple way to tell which tun devices are up at any moment?
>
> Cheers,
> ~Mik
you could look at /sys/class/net/*/brport
--
Stephen Hemminger <shemminger@osdl.org>
OSDL http://developer.osdl.org/~shemminger
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-07 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 20:16 [Bridge] Simple list of tun devices? Michael Bueker
2005-11-07 21:17 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.