Hi Greg, > > the linux kernel is running on an embedded box ... so if i can achieve > > this using hotplug2 , i can save a lot of flash by not intstalling > > ethtool .. > > is there any way > > You are really using hotplug2 for a device? Are you insane? That's > very old, unsupported, and buggy code that was a totally bad idea when I > wrote it. > > Please do not use it, it will break and cause bad things to happen. > > And no, there are no hotplug events for link up/down, use ethtool like > it is designed for. actually there was a patch for KOBJ_CHANGE events when network interface flags change, but it never got merged upstream. Also just using RTNL and listening for IFF_LOWER_UP is way simpler than going through uevents. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html