From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Manage network links with hotplug?
Date: Wed, 24 Mar 2004 23:14:26 +0000 [thread overview]
Message-ID: <20040324231426.GA20651@kroah.com> (raw)
In-Reply-To: <slrnc5qu32.1f2.joerg@alea.gnuu.de>
On Wed, Mar 24, 2004 at 11:53:55AM +0000, Joerg Sommer wrote:
> begin "Marco d'Itri" <md@Linux.IT> wrote:
> > On Mar 21, Joerg Sommer <joerg@alea.gnuu.de> 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_id\x1470&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
next prev parent reply other threads:[~2004-03-24 23:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-21 11:11 Manage network links with hotplug? Joerg Sommer
2004-03-21 12:39 ` Marco d'Itri
2004-03-22 15:35 ` Greg KH
2004-03-22 17:24 ` Marco d'Itri
2004-03-22 17:44 ` Greg KH
2004-03-24 11:53 ` Joerg Sommer
2004-03-24 23:14 ` Greg KH [this message]
2004-03-25 16:25 ` Gioele Barabucci
2004-03-26 23:02 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040324231426.GA20651@kroah.com \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).