From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 24 Mar 2004 23:14:26 +0000 Subject: Re: Manage network links with hotplug? Message-Id: <20040324231426.GA20651@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Mar 24, 2004 at 11:53:55AM +0000, Joerg Sommer wrote: > begin "Marco d'Itri" wrote: > > On Mar 21, Joerg Sommer wrote: > > > >> is it possible to manage network links with hotplug. Is there a hotplug > >> event if the cable is pluged in the network card? Is would supersede > >> tools like ifplugd which poll the state of the network link. > > Yes, look at /etc/hotplug/net.agent. > > But I don't get any hotplug event. I set export DEBUG=yes in > /sbin/hotplug, pulled out the network cable, waited a few seconds and > pluged it in, but I didn't get any message in /var/log/user.log and > nothing happend. Oops, sorry, network cable events do not generate hotplug events. I was thinking of network device adds and removes. You will have to use ethtool or netlink to detect loss of the ethernet link. Good luck, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel