Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Dom <toyer@xxxxxxxxx>
- Date: Thu, 09 Jun 2011 21:07:07 +0100
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 debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4DF127EB.20408@xxxxxxxxx
- Follow-Ups:
- References:
- laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Mitchell Laks
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Camaleón
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Mitchell Laks
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Brian
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Camaleón
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Brian
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Camaleón
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Brian
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Camaleón
- Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- From: Brian
- laptop restart eth0 automatically on plugin or on awake like a desktop
- Prev by Date: Re: Plug in with FIREFOX
- Next by Date: Re: Gnome desktop settings borked on testing after reboot
- Previous by thread: Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- Next by thread: Re: laptop restart eth0 automatically on plugin or on awake like a desktop
- Index(es):
Relevant Pages
|