On 09/06/11 19:35, Brian wrote:
On Thu 09 Jun 2011 at 17:55:50 +0000, Camaleón wrote:
Hum... what happens when you attach a USB device to the computer? Kernel
detects it and DE mounts it based on user's settings. And what happens
when you dettach the key? Kernel (or udev, or both) remove/umount the
device.
You are talking about *devices* here.
I would have thought that something similar happens with an ethernet
device but I've lost the track to udev development and currently I would
not put my hand in the fire for what and how it does.
An ethernet cable is not a device.
But I like your turn of phrase. Go on, get your fingers burnt! udevadm(8)
and unplug and plug the cable back in. See any reaction from udev?
The question remains - Why would plugging or unplugging the ethernet
cable be expected to bring the interface up or down?
This sounds like a job for ifplugd
"ifplugd is a daemon which will automatically configure your ethernet
device when a cable is plugged in and automatically de-configure it if
the cable is pulled out. This is useful on laptops with onboard network
adapters, since it will only configure the interface when a cable is
really connected."
Caveat: I've not used ifplugd myself, I have a couple of custom scripts
that do various things depending on which interface (Wired/Wireless) is
available.
--
Dom
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]