* Are there events when eth carrier changes state?
@ 2008-11-21 18:24 Karl O. Pinc
2008-11-21 19:27 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Karl O. Pinc @ 2008-11-21 18:24 UTC (permalink / raw)
To: linux-hotplug
Hi,
I see that eth0 has a ATTR{carrier}.
Are there any events that could be used
to trigger RUN rules when that changes?
How about ATTR{operstate}?
If not, is there somewhere I should be
looking besides udev?
There's a comment in the list archives
back in 2001 from Andrew Morton saying
that "better netdevice manageability"
is a goal, but I can't find any
further reference.
Thank you.
Karl <kop@meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Are there events when eth carrier changes state?
2008-11-21 18:24 Are there events when eth carrier changes state? Karl O. Pinc
@ 2008-11-21 19:27 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2008-11-21 19:27 UTC (permalink / raw)
To: linux-hotplug
On Fri, Nov 21, 2008 at 19:24, Karl O. Pinc <kop@meme.com> wrote:
> I see that eth0 has a ATTR{carrier}.
> Are there any events that could be used
> to trigger RUN rules when that changes?
No, there are no events for network interface state changes. Network
interface events have their own netlink NETLINK_ROUTE socket to listen
to events.
NetworkManager does all link handling on the desktop. Tiny custom
setups can use stuff like ifplugd to hook into these events.
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-21 19:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 18:24 Are there events when eth carrier changes state? Karl O. Pinc
2008-11-21 19:27 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).