Re: [dev] wicd and his little friends

From: Antoni Grzymala <antoni_AT_chopin.edu.pl>
Date: Thu, 20 Jan 2011 02:37:36 +0100

Jan dixit (2011-01-20, 02:33):

> On Thu, 20 Jan 2011 02:28:22 +0100, Antoni Grzymala <antoni_AT_chopin.edu.pl>
> wrote:
> > Jan dixit (2011-01-20, 02:26):
> >
> >> On Wed, 19 Jan 2011 20:22:51 -0500, Kurt H Maier <karmaflux_AT_gmail.com>
> >> wrote:
> >> > On Wed, Jan 19, 2011 at 8:15 PM, Jan <keks_AT_unstable.nl> wrote:
> >> >> Maybe surveilling /var/log/messages (lines are similar to dmesg
> >> >> output)
> >> >> for lines that include "eth0" and "link" might work.
> >> >
> >> > wpa_supplicant puts all its info (i.e., CTRL_EVENT_DISCONNECTED) out
> >> > on stderr. Could just pipe that to a shell script.
> >>
> >> Does wpa_supplicant work with wired devices?
> >
> > As a 802.11x supplicant? AFAIR yes.
>
> I thought the intention was to see if there is a cable plugged in, and I
> believe there are better ways for this task than having a wpa_supplicant
> running, this seems overpowered.

For that you could use netplug or ifplugd (and others) or even write a
script that watches carrier on an interface, certainly though the
former options make more sense as someone took the trouble to write it
in C (probably).

-- 
[a]
Received on Thu Jan 20 2011 - 02:37:36 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 20 2011 - 02:48:03 CET