Are there events when eth carrier changes state?
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 <[email protected]>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
Quoted 3 lines · Karl O. Pinc
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