On Thu, 20 Jan 2011 02:28:22 +0100, Antoni Grzymala <ant...@chopin.edu.pl> wrote: > Jan dixit (2011-01-20, 02:26): > >> On Wed, 19 Jan 2011 20:22:51 -0500, Kurt H Maier <karmaf...@gmail.com> >> wrote: >> > On Wed, Jan 19, 2011 at 8:15 PM, Jan <k...@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.