On Thu, 09 Jun 2011 19:35:48 +0100, 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.
AFAIK, network devices (NICs) are also managed by udev. Under lenny I have set a couple of rules for them: sm01@stt008:~$ ls -l /etc/udev/rules.d | grep net -rw-r--r-- 1 root root 955 nov 14 2009 70-persistent-net.rules -rw-r--r-- 1 root root 4427 ago 26 2009 75-persistent-net-generator.rules >> 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 the card is and the card interacts with it in some way when the cable is on/ off :-P > 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? Me? I don't have any problem with "*-hotplug". > The question remains - Why would plugging or unplugging the ethernet > cable be expected to bring the interface up or down? It does not have to be an isolated event. For example, the computer is hibernated or suspended, the cable was disonnected, you attach it and then you awake the system that triggers the restore script for the network service and the interface that was marked with "allow-hotplug" cannot be up. There can be another scenarios. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2011.06.09.19.11...@gmail.com