[kwlug-disc] Detecting and using wired network when available
Andrew Kohlsmith (mailing lists account)
aklists at mixdown.ca
Wed Jul 7 15:27:05 EDT 2010
On Wednesday, July 07, 2010 03:20:43 pm Chris Irwin wrote:
> You'll likely have to set something up to babysit the interface, like
> Andrew mentioned. Before network-manager was common, I used a small
> daemon called 'ifplugd'. On debian/ubuntu at least, it interfaces with
> the ifup/down scripts. It will configure and bring up your interface
> (and any associated routing rules) on plug-in, and take the interface
> down again when it loses link. I'd suggest starting there, it should
> be fairly easy to configure (I don't recall having any trouble with
> it). It was pretty lightweight, essentially existing exclusively for
> linkstate polling.
Actually you just gave me an idea... udev script that when the link goes down,
sets the wired metric to 100. Link goes up, sets it to 1. Wireless route
metric is a constant 10...
-A.
More information about the kwlug-disc
mailing list